Home / Forums / WoodMart support forum / Custom HTML Code Exposed to Client Side After Insertion
Home › Forums › WoodMart support forum › Custom HTML Code Exposed to Client Side After Insertion
Custom HTML Code Exposed to Client Side After Insertion
- This topic has 8 replies, 2 voices, and was last updated 3 months, 2 weeks ago by
Artem Temos.
-
AuthorPosts
-
March 10, 2026 at 11:33 am #711850
18111991896ParticipantTechnical Support Request: Custom HTML Code Exposed to Client Side After Insertion
Subject: Custom HTML Code Displayed as Plain Text on Client Side (Function Works) via WoodMart Custom HTML Module
Dear Technical Support Team,
I hope this message finds you well.
I am writing to report an issue where the custom HTML/CSS/JS code I inserted into my website’s footer section via the WoodMart theme’s Custom HTML module is being exposed as plain text to end-users on the client side, even though the functionality works properly. Below are the detailed circumstances:
1. Issue Description
Operation Scenario: I pasted a complete set of code (including HTML structure, CSS styles, and JavaScript interactive logic for a WhatsApp floating button) into the Custom HTML module of the WoodMart theme in the website’s footer area, then saved and published the changes.
Abnormal Phenomenon: The interactive functions of the WhatsApp button (e.g., typing animation, panel toggle, draggable feature) work as expected, but all the inserted code (CSS, JS, and HTML) is directly visible as plain text in the footer area on the website’s front-end, which can be clearly seen by all site visitors.
Impact: While the functionality is not affected, the exposed code severely damages the visual experience of the website and poses potential security risks.
2. Requested Assistance
Please help identify the root cause of the code exposure (e.g., parsing rules of WoodMart’s Custom HTML module, code formatting requirements).
Provide a feasible solution (configuration adjustments or code modifications) to ensure the inserted HTML/CSS/JS code is parsed and executed correctly without being displayed as plain text on the client side.
If there are specific usage guidelines for WoodMart’s Custom HTML module (e.g., code encapsulation requirements), please share them to prevent similar issues in the future.
Attachment: The core code (for a WhatsApp floating interactive button, including HTML structure, inline CSS styles, and JS interactive logic) is available upon request for your troubleshooting reference.
Thank you for your prompt attention and support. I look forward to your reply.
Best regards,Attachments:
You must be logged in to view attached files.March 11, 2026 at 10:11 am #712024Hello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
March 12, 2026 at 7:09 pm #712346
18111991896ParticipantDear Support Team,I am not sure which plugins may be causing the issue, so I authorize you to troubleshoot it on my behalf. My account and password are provided in the private content, and they are the same.
March 13, 2026 at 10:09 am #712399Hello,
Please send us your password as well so we can check what is wrong.
Kind Regards
March 13, 2026 at 10:47 am #712407
18111991896ParticipantThe password is the same as the account.
March 13, 2026 at 11:13 am #712413You are using HTML block that supports HTML tags only and doesn’t support custom scripts. You can put the script to Theme Settings -> Custom JS.
March 13, 2026 at 12:05 pm #712416
18111991896ParticipantShould I remove the original HTML section? I added the code to custom JS without removing HTML, but the issue remained after accessing the page. After removing HTML, the code functionality was lost.
March 15, 2026 at 12:29 pm #712675
18111991896ParticipantI noticed you haven’t replied to my request yet, so I’m sending it again.
March 16, 2026 at 1:50 pm #712774Hello,
Your custom code contains two parts: HTML and JS script. But you are using a block that supports HTML only. It doesn’t support JS scripts. That is why I suggested you to split this code and move the JS script to the Custom JS.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register