x

"Click to set custom HTML" appears on my public webpage

I'm using custom HTML to add an audio element. "Click to set custom HTML" appears on my public webpage, even though it does no appear in the HTM or in the preview page. Here are related screen shots.

2,957 Views
Message 1 of 8
Report
7 REPLIES 7

@Chasey_Chasem 

If you have any text outside the opening and closing tags in your code it will appear on the published webpage. My guess is that you haven't deleted 'Click to set custom HTML' and it's still floating around in your embed element somewhere.

Hope this helps, Gary

2,947 Views
Message 9 of 8
Report

Gary, thanks, but I have a little HTML experience so I checked that. The screen shots in my post show that the text is not in the custom HTML box. Here's the HTML code generated (from the public page), you can see there is a div associated with that text.

<div class="paragraph"><font size="3"><strong>Thanks&nbsp;for listening!</strong></font><font size="3">&#8203;</font></div>
<div><div id="792511276407757031" align="left" style="width: 100%; overflow-y: hidden;" class="wcustomhtml">Click to set custom HTML</div>
</div>
<div><div id="451467141904154235" align="center" style="width: 100%; overflow-y: hidden;" class="wcustomhtml"><audio controls autoplay 
  src="https://ktal.imarad.io/stream">
Your browser does not support the audio element.
</audio>
</div>
</div>
2,936 Views
Message 9 of 8
Report

@Chasey_Chasem 

The text is superfluous to the code. If you remove only the text it should stop appearing on the published site.

Gary

2,934 Views
Message 9 of 8
Report

Gary, that text is not in the HTML code. Please, look at the screen shots I posted. weebly_html.png clearly shows that the text is not in the HTML code.

2,926 Views
Message 9 of 8
Report
Square

Can you try deleting the element and adding a brand new one? Is your site using a custom theme? I'm not sure if conflicting code would affect the element in this way, but I tested the Embed Code element in a test site and the text does not appear on the live site. 

2,922 Views
Message 9 of 8
Report

@Chasey_Chasem 

I said the text is superfluous to the code, not that it was part of the code. It doesn't need to be there. It serves no function.

I just pasted your code into an HTML element and got the same result as you. I then deleted the text and it disappeared from both the editor and the published page with zero effect on functionality of the player.

Just delete the text. It's superfluous and because it's not properly wrapped in tags it's appearing as plain text.

Gary.

2,913 Views
Message 9 of 8
Report

Gary,

  The text "Click to set custom HTML" is not in the custom HMTL box in Weebly designer, superfluous to the code or not, as shown in my screen shot.

  Deleting the HTML element and re-creating it fixed the problem.

Thanks,

Bruce

2,890 Views
Message 9 of 8
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.