Naldinho Posted April 2, 2014 Share Posted April 2, 2014 I was wondering is it possible to use HTML on CMS pages? I tried just entering the code but all that leads to is the code as my page. I tried encapsulating the code in <html> ... </html> but that had the same results. Link to comment Share on other sites More sharing options...
Naldinho Posted April 2, 2014 Author Share Posted April 2, 2014 I figured it out. Feel free to delete topic. Link to comment Share on other sites More sharing options...
vekia Posted April 2, 2014 Share Posted April 2, 2014 hello it will be much better for our community to not remove this thread, and it will be great if you will post your solution Link to comment Share on other sites More sharing options...
tmk Posted April 2, 2014 Share Posted April 2, 2014 It seems to be so simple as use source code button in wyswig editor Link to comment Share on other sites More sharing options...
Naldinho Posted April 2, 2014 Author Share Posted April 2, 2014 (edited) 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 April 2, 2014 by Naldinho (see edit history) 1 Link to comment Share on other sites More sharing options...
tmk Posted April 2, 2014 Share Posted April 2, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now