TDCadmin Posted May 30, 2014 Share Posted May 30, 2014 Hello once again all!I have two CMS pages that I need to remove the left column from. Each page has an iframe microsite that needs to fit in the page, and the left column needs to be gone to achieve this. Please help!!!!!!THANKS IN ADVANCE!!!!!!!!!! Link to comment Share on other sites More sharing options...
vekia Posted May 30, 2014 Share Posted May 30, 2014 what prestashop version you use ? and what theme? everything depends on it Link to comment Share on other sites More sharing options...
TDCadmin Posted May 31, 2014 Author Share Posted May 31, 2014 Prestashop 1.5.6.2 http://addons.prestashop.com/en/beauty-jewelry/8468-beauy-shop-prestashop-template-prs060130.html You helped me with this a few months back when I had 1.4.x.x Thank you Link to comment Share on other sites More sharing options...
vekia Posted May 31, 2014 Share Posted May 31, 2014 hello in your global stylesheet file (/themes/YOUR_THEME/css/global.css) at the end of the file paste this code: #cms #left_column { display:none; } #cms #center_column { width:100%; } Link to comment Share on other sites More sharing options...
TDCadmin Posted May 31, 2014 Author Share Posted May 31, 2014 Won't this remove the left column from every CMS page? I would strongly prefer to enter only a few pages. I have 38 pages, 36 of which are already styled for left column . Link to comment Share on other sites More sharing options...
TDCadmin Posted June 2, 2014 Author Share Posted June 2, 2014 bump bump Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 without modifications of the core / template files it's not possible. it can be done in several ways. to the body class="" add {if isset($smarty.get.id_cms)}cmspage{$smarty.get.id_cms}{/if} then you will be able to use styles based on id of cms page, for exaple: .cmspage5 #left_column { display:none;} Link to comment Share on other sites More sharing options...
TDCadmin Posted June 2, 2014 Author Share Posted June 2, 2014 to the body class="" add {if isset($smarty.get.id_cms)}cmspage{$smarty.get.id_cms}{/if} What folder/file is this in? .cmspage5 #left_column { display:none; } Then I create each one of these for each page I want to remove the column for? Is this in the global.css? Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 What folder/file is this in? header.tpl there is: <body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{/if}{if $hide_right_column} hide-right-column{/if}{if $content_only} content_only{/if} lang_{$lang_iso}"> change it to: <body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($smarty.get.id_cms)}cmspage{$smarty.get.id_cms}{/if} {if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{/if}{if $hide_right_column} hide-right-column{/if}{if $content_only} content_only{/if} lang_{$lang_iso}"> Then I create each one of these for each page I want to remove the column for?Is this in the global.css? that's correct :-) 1 Link to comment Share on other sites More sharing options...
TDCadmin Posted June 3, 2014 Author Share Posted June 3, 2014 So I tried the above and it didn't work for me.. I am doing something wrong with the header.tpl.... I am assuming this {if isset($smarty.get.id_cms)}cmspage{$smarty.get.id_cms}{/if} needs to get its own line but I'm not sure how to format it. Header.tpl (in the folder of the active theme) </head> {if isset($page_name)} {if $page_name == 'order'} <body id="index" class="{if $hide_left_column}hide-left-column {/if} {if $hide_right_column}hide-right-column {/if} {if $content_only} content_only {/if}"> {else} <body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column {/if} {if $hide_right_column}hide-right-column {/if} {if $content_only} content_only {/if}"> {/if} {else} <body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column {/if} {if $hide_right_column}hide-right-column {/if} {if $content_only} content_only {/if} {if isset($smarty.get.id_cms)}cmspage{$smarty.get.id_cms} {/if}"> {/if} {if !$content_only} Global.css (In active theme/css) #main_menu .last{ border-right:none; } .cmspage38 #left_column { display:none; } .cmspage39 #left_column { display:none; } Link to comment Share on other sites More sharing options...
TDCadmin Posted June 3, 2014 Author Share Posted June 3, 2014 Also tried, <!-- ==================== TEST ================ --!> {else} <body {if isset($smarty.get.id_cms)}id="{$smarty.get.id_cms|escape:'htmlall':'UTF-8'}"{/if} class="{if isset($smarty.get.id_cms)}cmspage{$smarty.get.id_cms}{/if}"> {/if} Link to comment Share on other sites More sharing options...
TDCadmin Posted June 4, 2014 Author Share Posted June 4, 2014 bump Link to comment Share on other sites More sharing options...
TDCadmin Posted June 4, 2014 Author Share Posted June 4, 2014 sorry your reply looks way different now! I will re-do it! Link to comment Share on other sites More sharing options...
TDCadmin Posted June 4, 2014 Author Share Posted June 4, 2014 So it WORKS!!!!! It gets rid of the left column. HOWEVER, it doesn't resize the center column to 94%. Link to comment Share on other sites More sharing options...
vekia Posted June 4, 2014 Share Posted June 4, 2014 now it's time to css you can use the same class (cms trick with id of cms page) + center_column to enlarge center column width 1 Link to comment Share on other sites More sharing options...
TDCadmin Posted June 4, 2014 Author Share Posted June 4, 2014 I want to first appologize for not understanding the reply Posted 02 June 2014 - 03:46 PM. When I viewed it at home, it didn't have the code so clearly defined as I see it now. I have changed the global.css to reflect 100% and its working!!!Thank you, not only for helping me, but for teaching me. APPRECIATED VERY MUCH! Link to comment Share on other sites More sharing options...
Anderson C. Posted September 2, 2014 Share Posted September 2, 2014 I could not make it work in version 1.5.6.2, can someone help? Link to comment Share on other sites More sharing options...
vekia Posted September 3, 2014 Share Posted September 3, 2014 what theme you use? a lot of things depends on it Link to comment Share on other sites More sharing options...
Recommended Posts