Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8065561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:42:21+00:00 2026-06-05T11:42:21+00:00

This is my current set up. I have created a new custom theme with

  • 0

This is my current set up.

I have created a new custom theme with the following regions.

regions[header] = Header
regions[content] = Content
regions[footer] = Footer

page.tpl.php

    <div id="Header">
        <div class="row">
            <div class="span12" style="text-align:center;padding-top:20px;">
                <div><a href="/"><img src="logo.png" width="150" height="150" alt="KT Logo"></a></div>
            </div>
        </div>

        <div class="row">&nbsp;</div>
    </div><!-- /Header -->

    <div id="Navigation">
        <div class="row" style="text-align:center;">
            <div class="span12" style="text-align:center;">
                <?php print render($page['header']); ?>
                <hr class="style-two">
            </div>
        </div>
    </div><!-- /Navigation -->

    <div id="Content">

        <div class="row">&nbsp;</div>

        <div class="row">
            <div class="span8 offset1">
                <h1><?php print $title; ?></h1>
            </div>
        </div>

        <div class="row">&nbsp;</div>

        <div class="row">
            <div class="span10 offset1">
                <?php print render($page['content']) ?>
            </div>
        </div>

        <div class="row">&nbsp;</div>
    </div><!-- /Content -->

    <footer>
        <div class="row">
            <div class="span12">
                <img src="separator.png" alt="separator">
                <?php print render($page['footer']); ?>
            </div>
        </div>
        <div class="row">&nbsp;</div>
    </footer>

</div><!-- /container -->

This all works well and I have created several basic pages fine. The problem comes when I want to have a custom “content type” with 2 blocks on a page, one with main content on left, one with a sidebar on right. Now I’m not completely understanding how the regions work.

I am wanting something like the sidebar_second effect but I’m not sure how it would set in with my widths. Here is a screenshot of my regions. http://goo.gl/XFVnl

So I think I need to change the way my content region is displayed so that it can include the sidebar region?

Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:42:23+00:00Added an answer on June 5, 2026 at 11:42 am

    Content-type specific templates are usually node.tpl.php files, and page templates are page.tpl.php files.

    page.tpl.php file is already included when you are using a node.tpl.php

    First, add ALL the regions to the .info file of them theme. This directly affects which regions are available in blocks administration page.
    It’s not necessary to have all the regions you defined (in .info file) to present in all page.tpl.php files.

    As you have 3 regions in the page.tpl.php file, leave it and it will continue to work.
    But to override the page.tpl.php for specific node types, you will have to set them in the theme’s template.php file. You simple “ask” Drupal to use this page.tpl.php file is node type is a “page” (for example).

    Add this to your template.php file. Drupal will not look in to page–node-book.tpl.php file for an alternative page.tpl.php file if the node type is (machine name) is “book”.

    <?php
    function themename_preprocess_page(&$variables) {
      if (!empty($variables['node'])) {
        $variables['theme_hook_suggestions'][] = 'page__node_' . $variables['node']->type;
      }
    }
    ?>
    

    Now you can copy the page.tpl.php file to page–node-[type].tpl.php and make your changes there. Whatever you put in this file will be used for page template for that node type.
    (Note: 2 hyphens between “page” and “node”, and one between “node” and “[type]”)
    Remember to clear caches if you can’t see the changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a bit of difficulty with this current code I have set
this is for a small project of mine, I'm trying to set the current
In C++, I can set the current locale like this: std::locale::global(std::locale(name)) But how can
We have this current database which we need to replace some tables by anther
As a beginner in Ocaml, I have this current working code: ... let ch_in
I have a custom UITableViewCell which I created in Interface Builder. I am successfully
I have created a custom comboBox that supports images in front of the items
I have created a custom list with columns. 1. Location 2. Location_MMYY(Not visible on
I have created my custom field type for listing available users in to Dropdownlist.
I have created a custom pipeline component which transforms a complex excel spreadsheet to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.