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

  • SEARCH
  • Home
  • 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 6470863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:09:33+00:00 2026-05-25T06:09:33+00:00

I have graphical project of three-column Drupal front page which has first column for

  • 0

I have graphical project of three-column Drupal front page which has first column for one piece of custom content and two other colums designed for most recent news (one content type) as it is shown on image below:

enter image description here

I am quite new to Drupal and so far I created my own page.front.tpl.php in my PHPTemplate theme with regions like header, footer, menu, search_box etc and content of course. Now I have problem with $content region, in which there should be columns as I described above. My question is: How do I style them (CSS? somewhere in Drupal’s admin? use separate blocks? Some module?) to look like in project?

page.front.tpl.php fragment:

<?php if ($content): ?><div class="content-middle"><?php print $content; ?></div><?php endif; ?>

Output simplified HTML structure (so far only two most recent news), I want to style this somehow:

<div class="content-middle">

  <div class="node">
    <h2 class="title">
    <div class="content">

  <div class="node">
    <h2 class="title">
    <div class="content">
  • 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-05-25T06:09:34+00:00Added an answer on May 25, 2026 at 6:09 am

    You can create 3 new sections in your theme. Modify your .info file (for example MyThemeName.info) and write the following :

    regions[content_center_left] = Left Sidebar
    regions[content_center_middle] = Middle Sidebar
    regions[content_center_right] = Right Sidebar
    

    The next step is to modify your page.tpl.php or if you want these sections to be available only in front page you can modify page-front.tpl.php. Write the following where you want the sections to be displayed:

    <?php if ($content_center_left): ?>
       <div class="content-left">
          <?php print $content_center_left?>
       </div><!-- /content_center_left -->
    <?php endif; ?>
    <?php if ($content_center_middle): ?>
       <div class="content-middle">
          <?php print $content_center_middle?>
       </div><!-- /content_center_middle -->
    <?php endif; ?>
    <?php if ($content_center_right): ?>
       <div class="content-right">
          <?php print $content_center_right?>
       </div><!-- /content_center_right -->
    <?php endif; ?>
    

    Now you can create your views (as blocks) and display them in these sections.

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

Sidebar

Related Questions

My project has an HTML5 Canvas on which graphical objects are drawn repeatedly. These
Summery : I have a custom UITabBarAutoRotateController which returns YES from shouldAutorotateToInterfaceOrientation. This has
my company has recently upgraded from VS2005 to VS2010. We have a huge project
I have a graphical Android project and my primary trick for providing user interface
I have a class on low-level programming which requires a final project (syllabus at
I currently have a GUI built in wxPython with several sections, one of which
I have a project in which i would like to be able to have
I have a graphical app that needs to test the resolution of the display
I have a graphical control that is multithreaded. Until now it worked fine, but
I have to make a graphical user interface application using the language of my

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.