Removed account Posted November 19, 2019 Share Posted November 19, 2019 (edited) Hello, I'm trying to add some simple custom code inside HTMLBox & Custom Block Text modules but Prestashop parses my code in a kind of way so I can't put anything big, for e.g.: I'm trying to put this custom code: <div class="dflex"> <a href="https://foo" class="cblock"></a> </div> But each time I try to apply this code, no matter what module I'm updating, it converts my code into this: <div class="dflex"></div> I've tried putting simple brackets: same Disabled HTMLPurifier: same Where should I check out to solve this? Thanks for your help. Edited November 24, 2019 by Studio Creativ (see edit history) Link to comment Share on other sites More sharing options...
Rafa TTT Posted November 22, 2019 Share Posted November 22, 2019 I had same error, using this link works for me 1 Link to comment Share on other sites More sharing options...
Removed account Posted November 22, 2019 Author Share Posted November 22, 2019 Well, yes, this might work for the anchor links, but any other tags like <span>, <aside> etc. will still be cut by Prestashop. I need somehow to tell Prestashop to let my custom code as it is without formating / parsing it. Any ideas? Link to comment Share on other sites More sharing options...
tuk66 Posted November 24, 2019 Share Posted November 24, 2019 Have tried? <p class="dflex"> <a href="https://foo" class="cblock">CONTENT</a> </p> Notice <p> and CONTENT. TinyMCE deletes empty tags and you should also think about the order of the tags and the tags themselves. 1 Link to comment Share on other sites More sharing options...
Removed account Posted November 24, 2019 Author Share Posted November 24, 2019 Thanks, this is in fact the right solution: the empty tags are removed by TinyMCE Link to comment Share on other sites More sharing options...
Rafa TTT Posted November 25, 2019 Share Posted November 25, 2019 Greats, thanks 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