Jump to content
Studio Creativ

[SOLVED] Inserting custom HTML code

Recommended Posts

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 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>
</p>

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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