Jump to content

Basic (is it possible) question about HTML and CMS Pages


Recommended Posts

It wasn't really a solution so much as I wasn't thinking. Originally I was pasting the HTML code directly into the Page Content box on the CMS edit page so PrestaShop was treating it as text. Once I opened the HTML editor window and pasted the code into that it mostly worked.

 

The code is just a table so I don't know what else you can do this way. I have seen numerous topics discussing editing Validator to extend the HTML tags that can be parsed.

 

I said mostly worked because while it did generate the table the styles that were all defined in the head did not work. I solved this by just doing a copy and replace and having the complete style every time it was referenced rather than just using class. That seemed to fix 95% of the formatting. The only formatting issue remaining is row height. The HTML version looks nice and neat with row height automatically snug to the text while the PrestaShop CMS page has the row height too large. Playing with that now.

 

My goal is to add basically the equivalent of a small website using CMS pages -- not sure if there is a better way to do that and I don't know if that is going to be possible. I don't know what these pages will look like yet so not sure what I need nor what HTML beyond tables I can use in CMS pages so see where this goes. I will likely want to add some HTML to other areas of the store so I was looking at some modules last night. HTMLBox Pro looked promising but I was too tired to fully grasp if it would accomplish what I am trying to do. I'll be taking a look this afternoon at what modules are out there once I have a better grasp of what the limitations of PrestaShop out of the box are.

Edited by Naldinho (see edit history)
  • Like 1
Link to comment
Share on other sites

Besides You edit code manually wyswig editors edit Your code on its way.

Try to keep standard of HTML code.

Use table only for data of one kind which You want to be organized. To site content and structure use div.

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...