ThemeShaper Forums » Thematic

[closed]

page specific css

(5 posts)
  • Started 4 years ago by rame
  • Latest reply from rame
  • This topic is not resolved
  1. Hi,

    I am working on a site and need to set the with of #content and #container to 100% on one single page (projekt)

    I have tryde diferent options but non is working.

    On the page "projekt" i have a nextgen gallery and i whant it to use the enteir with of #main.

    if #content and #container is set to 100% in css it nocks down the sidbar so i need this to be set only on "projekt"

    i am using a child them and thematic

    Posted 4 years ago #
  2. 02rilund
    Member

    1. copy "page.php" from the thematic folder and paste it in you child theme folder.
    2. rename the file template-fullpage.php
    3. open the file and add :

    <?php
    /*
    Template Name: Full Page
    */
    ?>

    in the beginning of the document, before any other code.

    4. Remove the codepart:

    // calling the standard sidebar
    thematic_sidebar();

    5. open "style.css" from your child theme folder and paste:

    /* =Page Templates
    -------------------------------------------------------------- */

    .page-template-template-fullpage-php #container {
    width:940px;
    float:left;
    }

    .page-template-template-fullpage-php #content {
    margin:0 0 0 10px;
    width:940px;
    overflow:hidden;
    }

    5. go to your page "projekt" and choose the template "Full page"

    Posted 4 years ago #
  3. You could remove the side bar by using a bit of code on your functions.php file. Chris explains this well here; http://programming.thematic4you.com/2010/01/how-to-remove-the-sidebar-from-a-certain-page/

    Posted 4 years ago #
  4. Thanks for the quick answers. I will try it out to morrow and get back with a report.

    Posted 4 years ago #
  5. Thank you ! ! it worked like a charm!

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.