Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Removing sideboxes from defines page

    You should be able to hide it with CSS, specific to the page id. A link to the page or site in question will make it easier to give good advice.

  2. #12
    Join Date
    May 2008
    Location
    Sydney
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing sideboxes from defines page

    I am attempting to remove both sideboxes for my shopping cart and checkout pages.

    I have put the following lines in my tpl_shopping_cart_default.php and the tpl_checkout_confirmation_default.php.

    $flag_disable_left = true;
    $flag_disable_right = true;

    The left sideboxes do not disappear but the right ones do, any suggestions?

    Thankyou

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Removing sideboxes from defines page

    I expect that those files are being called when the center column is processed, after the left column is output, so the flags there can't affect the left column.

    You need to put the flags in tpl_main_page.php, either in a page-specific subdirectory copy as DrByte mentioned at the top of the thread, or in a conditional statement that operates on the value of $current_page_base.

  4. #14
    Join Date
    May 2008
    Location
    Sydney
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing sideboxes from defines page

    Thanks for your assistance, that worked.

  5. #15
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: Removing sideboxes from defines page

    Hmmm... Following this advice I was able to remove the sideboxes from a specific page. However, as you can see the dead space associated with the sidebox is still in place. Can you tell me how to make the entire page available?

    FYI: I'm running the Apple Zen template with left-side-only sideboxes, although I did need to define both left & right if statement for it to work:
    PHP Code:
    if ($current_page_base == 'page_3') { //(or whatever the correct technical name is)
      
    $flag_disable_left true;
      
    $flag_disable_right true;

    Thanks!

  6. #16
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Removing sideboxes from defines page

    It looks like there are two separate things that are causing this. The center column is specified to stay to the right, and paragraphs are given a fixed width as well.

    Code:
    .centerColumn { 	
    background:#E0FFA0;
    width:75%; 	/*these 2 lines keep the center column to the right 75% of the space*/
    float:right; 	
    margin:0 2% 2% 3%; 	
    text-align:left; 	
    line-height:1.6em; 	
    display:inline; /* fixes IE Bug in IE6 and earlier - do not remove */ 	}
    
    
    #content p {
    		 width: 460px;
    		 color: #000;
    		 font-size: 0.7em;
    		 margin-left: 20px;
    		 font-weight: normal;}
    This is a delicately woven template, and it will require some targeted conditional styling to make it flex as you wish. A per-page stylesheet with the correct rules to undo the above will probably work.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Removing (more) from sideboxes
    By butchx5 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Mar 2009, 06:50 PM
  2. Removing sideboxes from EZ pages
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Jun 2008, 09:11 PM
  3. Removing Sideboxes from ALL EZ Pages
    By jasen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 May 2007, 03:09 AM
  4. Getting text to show from defines page editor
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Mar 2007, 01:24 AM

Posting Permissions

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