+ Reply to Thread
Results 1 to 7 of 7

Thread: no sidebars on one page

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Post no sidebars on one page

    nhplib.org wants to have one page (trustees) with no sidebars. I am using cutline 3 column split. The one trustee page needs to have the margins resized so the page is just plain jane for informational purposes only. I've looked through the forums for "no sidebars" but I cannot find this posted. I have very little experience with php so if someone can step by step me on how to have one page not call the sidebars. thanks for any help on this subject.

  2. #2
    Join Date
    Feb 2009
    Posts
    605

    Default

    Using the concept on this thread:

    http://cutline.tubetorial.com/forums...49&postcount=2


    Do this: Open page.php and find the sidebar code, then change it from this:

    PHP Code:
    <?php include (TEMPLATEPATH '/sidebar.php'); ?>        
    <?php include (TEMPLATEPATH '/r_sidebar.php'); ?>
    to this:

    PHP Code:
    <?php if ( !is_page('Trustees') ) {
    include (
    TEMPLATEPATH '/sidebar.php');
    include (
    TEMPLATEPATH '/r_sidebar.php');
    ?>
    This assumes that the title of your page is "Trustees". If you want to remove just one of the two sidebars, let me know.




    Quote Originally Posted by nhlibrarian View Post
    nhplib.org wants to have one page (trustees) with no sidebars. I am using cutline 3 column split. The one trustee page needs to have the margins resized so the page is just plain jane for informational purposes only. I've looked through the forums for "no sidebars" but I cannot find this posted. I have very little experience with php so if someone can step by step me on how to have one page not call the sidebars. thanks for any help on this subject.

  3. #3
    Join Date
    Sep 2009
    Posts
    2

    Default

    thanks, i finally got the "no sidebars" to work on the trustees page. But do you have Any idea why the document links on the page are now opening in "Scribid i paper" instead of staying just links? And one more thing - where do i set the right margin to extend across the page. Thanks again and in advance. http://nhplib.org

  4. #4
    Join Date
    Feb 2009
    Posts
    605

    Default

    I don't see any Scribed iPaper stuff on the Trustees page, perhaps it's a plugin you installed? I do know that because they're PDF files that when you click on them you need a PDF viewer, it could be that that's what's happening with you.

    As for the right margin on that page, could you first change your code in header.php from this

    Code:
    <body>
    to this

    PHP Code:
    <body <?php body_class(); ?>
    I'll need it so you can change the CSS only if it's on that page. Then tell me what page ID the Trustees page is. Because the code will depend on that:

    Code:
    .page-id-3 #content { width: 970px; padding: 0; }
    Change 3 to the ID of your page.



    Quote Originally Posted by nhlibrarian View Post
    thanks, i finally got the "no sidebars" to work on the trustees page. But do you have Any idea why the document links on the page are now opening in "Scribid i paper" instead of staying just links? And one more thing - where do i set the right margin to extend across the page. Thanks again and in advance. http://nhplib.org

  5. #5
    Join Date
    Dec 2009
    Posts
    2

    Default

    I was so excited to see these instructions laid out so clearly.

    Apparently not clear enough for me, though.

    Where do I find:

    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>

    I was looking at page.php but the only reference I see to sidebar is:

    <?php get_sidebar(); ?>

  6. #6
    Join Date
    Feb 2009
    Posts
    605

    Default

    Which version of Cutline are you using? It's probably not 3-column. It should still work when you use <?php get_sidebar(); ?> inside of the IF statement.




    Quote Originally Posted by Hatchew View Post
    I was so excited to see these instructions laid out so clearly.

    Apparently not clear enough for me, though.

    Where do I find:

    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>

    I was looking at page.php but the only reference I see to sidebar is:

    <?php get_sidebar(); ?>

  7. #7
    Join Date
    Dec 2009
    Posts
    2

    Default

    You're right, it's a 2 column. So I should change

    <?php get_sidebar(); ?>

    to:

    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>

    Thanks for the help.

+ Reply to Thread

Similar Threads

  1. Align the Page Titles to the Center of the Page
    By nailyener in forum Header & Nav Bar
    Replies: 3
    Last Post: 10-31-2010, 02:26 PM
  2. Registering Sidebars
    By mehubbard in forum Sidebar
    Replies: 1
    Last Post: 12-01-2009, 01:11 PM
  3. Page with post content instead of page content
    By kaiak808 in forum Posts, Pages, Comments
    Replies: 6
    Last Post: 09-28-2009, 08:59 AM
  4. Comments count on Cutline 1.4 three column, split sidebars
    By koolvn in forum Posts, Pages, Comments
    Replies: 1
    Last Post: 03-30-2009, 09:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts