Script works in 'Custom Code' settings but not in 'HTML Embed'

Hi There,

Hope someone can help with this. Im not great with javascript, but had this script working in ‘Custom Code’ in project settings. But id like to use it in a HTML embed block on my ‘Project Templates’, so that the script wont effect the home page. Ive transferred the following code to the embed block, but it no longer works. Im sure im missing something fundamental here. Any advice would be really appreciated.

It adds a strikethrough to links to the current page.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

That script is dependent on jquery so it can only be loaded after it. Since jquery is loaded just before the “before body close” code area that is the only place your code will work.

1 Like

OK that makes sense - appreciate the advice. Will have to rethink this : )