Debugging functions
-
So I saw this in stackoverflow about setting up a jquery function in wordpress.
I have added the add_action code to functions.php in the my astra theme directory.
I have created a new directory and added the jquery script there.
On a page, I have added a few buttons as custom html, given them id’s and then added sone blocks of text as more custom html, given then id’s too and made the second block display:none style.
When I run the page (having saved it), the second block does not display (good) but the script is not running when the buttons press.
What would be the approach here to debugging javascript that is under wordpress?
Logs? Browser developer tools? Other?regards,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Debugging functions’ is closed to new replies.