• Hi there,

    The last 3 hours I’ve spent trying to get a basic jQuery code to work, I must be doing something wrong.

    I’ve created a new code block, added the code (below). Added it to the page I wanted it to work on, andddd it doesn’t work.

    I’m very unfamiliar with jQuery so I’ve added just a simple code for testing:

    <script language="javascript" type="text/javascript">
    $("h1").css("border", "22px solid green");
    </script>

    How come this doesn’t have any effect? When I test it in an empty HTML file it seems to work just fine..

    I hope someone can help me out here.

    Thanks in advance!

    https://www.ads-software.com/plugins/css-javascript-toolbox/

Viewing 1 replies (of 1 total)
  • Hello,

    Are you sure that jQuery library is linked/loaded in the page you selected.

    You can make sure by hovering the mouse over the “Templates Lookup” icon. You can find it in the Block Toolbox icons. Its the icon with <> inside. Under Javascript TAB click on WordPress user, scroll down until you find jQuery. Click ‘Link’ underneath jQuery. Test it.

    Let me know if you got it to work!

    Regards,
    AHMeD

Viewing 1 replies (of 1 total)
  • The topic ‘Can't get the code to 'activate' on the page’ is closed to new replies.