Custom html is being altered by Themler

Mike Kirk
21 Posts
Mike Kirk posted this 18 August 2017

I am building a static website and when I add code to a custom HTML block Themler is automatically changing my code.

I entered:

"<video autoplay loop muted class id></video><source src> "

but Themler adds ="" to the end of each attribute (autoplay="" loop="" muted="")

Why is this happening?

Any help would be appreciated.

Kind regards,

Mike

I am building a static website and when I add code to a custom HTML block Themler is automatically changing my code. I entered: "&lt;video autoplay loop muted class id&gt;&lt;/video&gt;&lt;source src&gt; &quot; but Themler adds =&quot;&quot; to the end of each attribute (autoplay=&quot;&quot; loop=&quot;&quot; muted=&quot;&quot;) Why is this happening? Any help would be appreciated. Kind regards, Mike

Last edited 18 August 2017 by Mike Kirk

Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 19 August 2017

Hi,

You insert it in the control itself or under the HTML Source option of the HTML control? The second option should work correctly.

Sincerely,
Hella

Hi, You insert it in the control itself or under the HTML Source option of the HTML control? The second option should work correctly. Sincerely, Hella
Mike Kirk
21 Posts
Mike Kirk posted this 19 August 2017

Hello Hella,

I have been using the "Edit HTML" option after clicking my HTML box—see attached. After saving this, when I click "Edit HTML again, the code has changed.

Kind regards,

Mike

Hello Hella, I have been using the "Edit HTML" option after clicking my HTML box—see attached. After saving this, when I click "Edit HTML again, the code has changed. Kind regards, Mike
Support Team
Support Team posted this 21 August 2017

Hi,

Please provide the code you were inserting. Wrap it into the code tags so the post won't render it. For that press CTRL+K and then insert the code in the brackets.

Sincerely,
Hella

Hi, Please provide the code you were inserting. Wrap it into the code tags so the post won't render it. For that press CTRL+K and then insert the code in the brackets. Sincerely, Hella
Mike Kirk
21 Posts
Mike Kirk posted this 21 August 2017

"<video autoplay loop muted class="bgvideo" id="bgvideo" <source src="/smartsprout-video.mp4"> </video>"

Thank you,
Mike

"<video autoplay loop muted class="bgvideo" id="bgvideo" <source src="/smartsprout-video.mp4"> </video>" Thank you, Mike
Mike Kirk
21 Posts
Mike Kirk posted this 21 August 2017

I have also noticed this happening to schema (this has me worried):

When I added the following code to the footer inside a HTML block "itemscope" it was changed to itemscope="".

I am a digital marketer and, for SEO, this is very serious. Due to Google displaying more and more rich snippets, Sites without propper structured data will be penalised.

<div itemscope itemtype="http://schema.org/LocalBusiness">

Changes to:

<div itemscope="" itemtype="http://schema.org/LocalBusiness">

Is there something the developers can do to fix this code replacement?

Kind regards,

Mike

I have also noticed this happening to schema (this has me worried): When I added the following code to the footer inside a HTML block "itemscope" it was changed to `itemscope=""`. I am a digital marketer and, for SEO, this is very serious. Due to Google displaying more and more rich snippets, Sites without propper structured data will be penalised. <div itemscope itemtype="http://schema.org/LocalBusiness"> Changes to: <div itemscope="" itemtype="http://schema.org/LocalBusiness"> Is there something the developers can do to fix this code replacement? Kind regards, Mike

Last edited 21 August 2017 by Mike Kirk

Mike Kirk
21 Posts
Mike Kirk posted this 28 August 2017

Hello,

Can I please get some help with this?

Kind regards,

Mike

Hello, Can I please get some help with this? Kind regards, Mike
DaveOzric
649 Posts
DaveOzric posted this 29 August 2017

So I have found that Themler has a issue/bug in the HTML5 builder that does this to the HTML element under certain circumstances. Essentially what happens is Themler renders the HTML for a live preview and so it loads the iframe or what have you then when you save it the code rendered gets saved as well. I imagine that's what is happening to you somehow but slightly different.

So my example is JotForm gives me a javascript code to enter that will load an iframe form. Once I enter the js in the HTML element the theme loads the iframe from JotForm's sever and when I save the theme it has both the js and the iframe in the code. Or some variation of this.

Themler support said it's not easy to fix.

So I have found that Themler has a issue/bug in the HTML5 builder that does this to the HTML element under certain circumstances. Essentially what happens is Themler renders the HTML for a live preview and so it loads the iframe or what have you then when you save it the code rendered gets saved as well. I imagine that's what is happening to you somehow but slightly different. So my example is JotForm gives me a javascript code to enter that will load an iframe form. Once I enter the js in the HTML element the theme loads the iframe from JotForm's sever and when I save the theme it has both the js and the iframe in the code. Or some variation of this. Themler support said it's not easy to fix.
Mike Kirk
21 Posts
Mike Kirk posted this 29 August 2017

Hello Dave.

I think I understand. Thanks for your input.

Like you say, this is a big problem. Themler is essentially here to make life easier; but some, usually simple, tasks are considerably more complex to achieve on here.

Hello Dave. I think I understand. Thanks for your input. Like you say, this is a big problem. Themler is essentially here to make life easier; but some, usually simple, tasks are considerably more complex to achieve on here.
You must log in or register to leave comments