Jump to content
Removed account

[SOLVED] Inserting custom HTML code

Recommended Posts


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>


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 by Studio Creativ (see edit history)

Share this post

Link to post
Share on other sites

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?

Share this post

Link to post
Share on other sites

Have tried?

<p class="dflex">
    <a href="https://foo" class="cblock">CONTENT</a>

Notice <p> and CONTENT. TinyMCE deletes empty tags and you should also think about the order of the tags and the tags themselves.

  • Like 1

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More