Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    46
    Plugin Contributions
    0

    Default Remove Sidebars from an ezpage

    I want to remove the left and right sidebars for an ezpage and can't get it to work.

    The ezpage id is 17
    I also use CEON Uri mapping and the page is called 'Knock-Offs'

    Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        $flag_disable_right = true;
      }
    I tried it as
    Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      if (in_array($current_page_base,explode(",",'Knock-Offs')) ) {
        $flag_disable_right = true;
      }
    and it didn't work.

    How would I do this?

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Remove Sidebars from an ezpage

    Define sidebars for me.. I don't understand?????

  3. #3
    Join Date
    Feb 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Remove Sidebars from an ezpage

    The columns on the right and left side. In my first post the code is only for the right, which I will duplicate for the left

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

  5. #5
    Join Date
    Feb 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Remove Sidebars from an ezpage

    Thanks, that page had a link to an article-
    https://www.zen-cart.com/tutorials/i...hp?article=233

    Which allowed me to only edit the tpl_main_page.php and use
    Code:
     if (in_array($ezpage_id,explode(",",'17'))) {
        $flag_disable_left = true;
      }

    Dan

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Remove Sidebars from an ezpage

    You are most welcome, glad I could help you find the right tools ...

 

 

Similar Threads

  1. v150 How to customise (homepage sidebar) to be different from (all other Sidebars)
    By mrdmorrison in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Aug 2012, 10:28 PM
  2. Remove header,sidebars etc when using iframe to show EZpages?
    By bonnit in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Nov 2011, 01:32 PM
  3. Some sidebars not working from layout controller
    By christinefred in forum Customization from the Admin
    Replies: 3
    Last Post: 10 Jun 2009, 07:46 PM
  4. How do I remove the default home link from EZpage footer bar
    By workbook in forum Basic Configuration
    Replies: 7
    Last Post: 6 Oct 2008, 10:46 PM
  5. remove title from a ezpage
    By fcegarra in forum General Questions
    Replies: 1
    Last Post: 2 Oct 2007, 03:16 PM

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