Add this to tpl_main_page.php
$center_column_only = array('checkout');
Add this to tpl_main_page.php
$center_column_only = array('checkout');
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
You're welcome. Glad to hear you got it working.
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
This would work as well
Code:if (in_array($current_page_base,explode(",",'login,checkout')) ) { $flag_disable_left = true; }
I am somewhat confused with coding as I go through this thread.
My goal is to hide certain sideboxes from the product pages. But, do not see sideboxes for them. Sideboxes to hide: newsletter, links, testimonials, and About Us.
Which file? I think this may be code? Where should it go in file at?
Thanks, KimHTML Code:if (in_array($current_page_base, explode(',','about_cool_tech,cool_tech_values,inside_cool_tech,giving_back,think_green,tech_support,discount-coupon'))){ //skip these pages } else { //...execute the code }
I want to hide certain sideboxes from product pages or basically keep only on main page. I went to includes/template/my temp/common/tpl_main_page. I added this code to keep only on main page for links side box, newsletter side box(subscribe), testimonials side box and About Us (ezpages).
$main_page_only = array('testimonials-manager','subscribe','linksbox','ezpages');
if (in_array($current_page_base,$main_page_only) ) {
$flag_disable_right = true;
$flag_disable_left = true;
}
I still can not get it to work.![]()
If you really want those sideboxes only on the home page, useor to target just those pagesPHP Code:if (!$this_is_home_page){
$flag_disable_left = true;
$flag_disable_right = true;
}
I know this should be equivalent to the test you posted, but I have successfully used this version many times.PHP Code:if (in_array($current_page_base, explode(',','testimonials-manager,subscribe,linksbox,ezpages'))){
$flag_disable_left = true;
$flag_disable_right = true;
}