Jump to content

Remove Column from CMS Pages


Recommended Posts

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!!!!!!!!!! :)  :)  :)  :)  :)  :)  :ph34r:

Link to comment
Share on other sites

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

 

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

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 :-)

  • Like 1
Link to comment
Share on other sites

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

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

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

  • 2 months later...
×
×
  • Create New...