Jump to content

[solved] HTML pages


Recommended Posts

I want to add some HTML pages to my webshop. They should have the default header and footer but the middle should be user defined html.

 

I considered CMS. However, my cms pages have a right column and I want these pages to be full width. 

 

Please advise. All options (paid or free modules, code modifications) are open.

Edited by musicmaster (see edit history)
Link to comment
Share on other sites

Hi,

 

easiest solution for you would be to create a CMS page and then use the CSS to hide right or left column for certain pages. You can check the body class for css-ID, where ID is the ID of the CMS page. By using those classes you can then add simple syntax such as

.cms2 #right_column {display:none}
Link to comment
Share on other sites

I want to add some HTML pages to my webshop. They should have the default header and footer but the middle should be user defined html.

 

I considered CMS. However, my cms pages have a right column and I want these pages to be full width. 

 

Please advise. All options (paid or free modules, code modifications) are open.

 

for what ps version? everything depends on it

if 1.6 - Oskar method will work

if 1.5 - there is no clas cms2 etc.

Link to comment
Share on other sites

Hi Oskar,

 

Thank you for the answer.

 

I don't understand the part about the id. You suggest that cms pages have IDs but I cannot find that in the source code of those pages. I see just "<body id="cms" class="lang_nl">" in all cms pages. Where should I look?

 

I am using PS 1.6

Edited by musicmaster (see edit history)
Link to comment
Share on other sites

so please add this:

{if $page_name =='cms'} cms{Tools::getValue('id_cms')}{/if}

to body class="" section in your theme header.tpl file

 

then cms page body element will have cmsX class where X will be an ID of page you will browse

  • Like 1
Link to comment
Share on other sites

Hi Vekia,

 

I am using 1.6. But I can't find any "cms2". I did a text search for my whole PS installation and looked at the source of my cms page: nothing....

1) Are you using default-bootstrap theme? If not, then use what Vekia suggested

2) Then clear cache

3) URL of your store is always almost helpful, this is definitely the case.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...