Home / Forums / WoodMart support forum / Script in the header breakes the site
Home › Forums › WoodMart support forum › Script in the header breakes the site
Script in the header breakes the site
- This topic has 24 replies, 2 voices, and was last updated 1 year, 8 months ago by
Artem Temos.
-
AuthorPosts
-
November 21, 2024 at 10:09 am #614085
senka.rankovicParticipantHello,
I have some scripts for tracking and consent mode in the header. They were working fine but since the update site doesn’t work with them. Also I’ve tried to send them to you, but it wouldn’t allow it. I’m sending you print screen and the file for you to see the scripts.
Thank youAttachments:
You must be logged in to view attached files.November 21, 2024 at 10:15 am #614089
senka.rankovicParticipantI will try with pdf
Attachments:
You must be logged in to view attached files.November 21, 2024 at 11:35 am #614162Hello,
Thank you so much for contacting our support center.
To better assist you, could you kindly test the functionality with default WordPress themes such as TwentyTwenty or WooCommerce Storefront? This will help us determine whether the issue stems from our theme or elsewhere.
Regards
November 21, 2024 at 1:13 pm #614249
senka.rankovicParticipantIt seems to have issues with Woodmart theme, I’ve tested with Storefront and there is no issues. But have in mind that most of the functionalities come from Woodmart, like menus and layouts. When I test with woodmart the images, cart and sticky menu doesn’t load.
November 21, 2024 at 1:25 pm #614258In this case, you need to check why Wordfence plugin blocks this particular request. If you can’t find the reason in the plugin’s logs, contact the plugin’s developers for instructions.
November 21, 2024 at 1:42 pm #614266
senka.rankovicParticipantI’m not sure I understand.
When I copy these scripts to woodmart theme header directly, without plugin, it’ the same problem.
And your plugin blocked the scripts when I tryed to send them to you. I’m not sure what is the problem, because scripts worked before without issues.November 21, 2024 at 4:17 pm #614326Oh, sorry. I thought that you sent a screenshot from your website.
Could you please clarify how can we test if the scripts work or not on your website? We need your admin access and the ability to switch between themes to see how our theme influences this issue.
November 21, 2024 at 4:45 pm #614350
senka.rankovicParticipantOk,
Because it is a live webshop you need to use plugins for testing
I use plugin Health Check & Troubleshooting for testing and WP Headers And Footers for the screepts.
At the moment WP Headers And Footers is turned off because site doesn’t work otherwise, you can turn it on before testing.
I’m sending you details for admin accsessNovember 21, 2024 at 4:54 pm #614360OK, but we also need instructions from you on how to verify if the code works or not.
November 21, 2024 at 5:13 pm #614384
senka.rankovicParticipantBefore testing turn on Headers and Footers plugin, all the scripts are already there.
With Health Check & Troubleshooting plugin in troubleshooting mode you can turn on and off all the plugins and themes. It’s just for you, site works for outside users. You choose what theme you want and what plugins, but when you turn on Headers and footers plugin site doesn’t work, when you turn it off it works. It’s the same when I put scripts in the header of the theme I just use the plugin so I could turn it of and my site could work.
When you finish testing just disable troubleshooting mode in the pluginNovember 21, 2024 at 5:59 pm #614409Sorry, but we can’t enter your website at the moment and get the following error https://gyazo.com/9dced4376645287d9c6e1c266d5c9079
November 21, 2024 at 6:42 pm #614422
senka.rankovicParticipantI’m sorry, our server is locked for some countries, it could be the reason.
Could you consult with your colleague Hung Pham or Aizaz Imtiaz Awan, they’ve accessed it so far.
Thank youNovember 22, 2024 at 10:01 am #614516I need to check by myself. Could you please unlock other countries temporarily?
November 22, 2024 at 11:15 am #614568
senka.rankovicParticipantI’m not in a position to do that, could you try with vpn?
From which country are you accessing?November 22, 2024 at 12:41 pm #614616In this case, please create a staging website where we can access it and do the tests. I’m trying to access it from Poland.
November 23, 2024 at 12:14 pm #614955
senka.rankovicParticipantHello,
The Poland is now unlocked, please try to login now.November 23, 2024 at 12:47 pm #614968Thank you. Now, when we activate the troubleshooting mode, we can’t activate the Header & Footer plugin as per your instructions. Here is a screenshot https://gyazo.com/6eaf4bdcb3427283a13cf76ecd0013de
November 23, 2024 at 12:53 pm #614971
senka.rankovicParticipantYou have to activate Headers and footers first, then Troubleshoot in Health and Troubleshoot.
I’m sending screenshots of first and second stepAttachments:
You must be logged in to view attached files.November 23, 2024 at 12:56 pm #614975OK, now we activated the plugin. But we don’t see any issues with your website. Could you please clarify what happens when the plugin is activated?
November 23, 2024 at 1:08 pm #614982
senka.rankovicParticipantWhen you activated plugin all other plugins and themes are disabled. Turn them off and on for testing as you like, and to see resaults you need to right click hotspotpro home icon from the plugin screen and open in a new window.
For testing try to hover menu items in sticky menu, and try testing cart.
I’m sending you print screens of the steps.Attachments:
You must be logged in to view attached files.November 23, 2024 at 1:44 pm #615000When the plugin is enabled, these scripts cause a lot of JS errors breaking most of JS scripts on your website. It doesn’t matter which theme is installed. You can check this yourself by opening the browser console. Here is a screenshot https://gyazo.com/121966c87ddfdb550f0635c2a707654f
November 23, 2024 at 1:57 pm #615011
senka.rankovicParticipantI’m sorry, I’m not a developer, so I don’t understand this. I just know my site worked before, now it doesn’t
November 23, 2024 at 2:13 pm #615016We checked with other themes and see that the code you added to your website contains errors and since it happens with other themes it is not related to the theme itself. You need to check your code but we can’t say exactly what is wrong with that. It is out of our theme support scope.
November 24, 2024 at 8:48 pm #615296
senka.rankovicParticipantThank you, I understand.
November 25, 2024 at 11:05 am #615410You are welcome. Feel free to contact us if you have any further questions.
-
AuthorPosts
The topic ‘Script in the header breakes the site’ is closed to new replies.
- You must be logged in to create new topics. Login / Register