Results 1 to 6 of 6
  1. #1
    Join Date
    May 2008
    Posts
    15
    Plugin Contributions
    0

    Default Different Styles on Different Pages

    Hi

    Can anyone tell me if it possible to remove the side boxes from my product page only because my product description area is pretty small and hard to read?

    My Website is http://www.takedigital.co.uk

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Different Styles on Different Pages

    Yes, you can disable columns by specific page types...

    Look in:-

    includes/templates/template_default/common/tpl_main_page.php

    and FTP a COPY of tpl_main_page.php to your hard drive.

    open it to EDIT using a proper text editor such as notepad++ or Crimson Editor.

    Find the section (around line 41):-

    PHP 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;
      } 
    And then list the page types you want NO right column to show, in your case, product_info:-

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'product_info')) ) {
        
    $flag_disable_right true;
      } 
    Then SAVE the file.

    FTP it back to your CUSTOM (over-rides) template folder...

    includes/templates/YOUR_CUSTOM_TEMPLATE/common/tpl_main_page.php

    (if you don't have a /common/ folder in your custom template tree, create it, then ftp tpl_main_page.php to that folder.)

    Look at the logic of the php line above to see how you could do the same for the LEFT column if so desired.

  3. #3
    Join Date
    May 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Different Styles on Different Pages

    Thanks alot

    Got two more questions.

    1. Can you move the 'Add to Cart' Box to the top right of the product page above the product description ( At the moment its at the bottom below the product description)?

    2. Sometimes when i load my store it says ' page can not be displayed'. I have to refresh for it to load correctly. Can i get it to load first time?

    http://www.takedigital.co.uk

  4. #4
    Join Date
    Apr 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Different Styles on Different Pages

    I used this trick on my tpl_main_page.php and it works fine but how do you change the ezpage too?

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Different Styles on Different Pages

    Look at the EZ Pages settings in CONFIGURATION menu (towards the bottom of CONFIGURATION drop-down). There, you can specify what columns to disable by EZPages page number.

  6. #6
    Join Date
    Apr 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Different Styles on Different Pages

    fantastic just the job, thanks for the prompt response

 

 

Similar Threads

  1. any way to define different banners for different pages?
    By mybiz9999 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jul 2010, 01:34 AM
  2. how to get different header for different pages? - Without CSS
    By markpr9 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Apr 2009, 04:34 PM
  3. Setting categories sidebox to different vertical heights on different pages
    By endl in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Feb 2009, 03:19 AM
  4. Different Styles Of EZ Pages
    By cs_jono in forum General Questions
    Replies: 0
    Last Post: 10 Mar 2008, 03:41 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