• I got the following problem:
    I want, that on the mobile version of my site the header-navigation can be opened and closed by clicking on the burger icon. I was able to code exactly that with a really simple javascript-function on another site. But when I tried to set it up on this site, it just wouldn’t work.

    So my questions are:
    1. Does Javascript even work in WP-Themes?
    2. Can I solve this Issue with PHP somehow?
    3. How can I make it, that my function runs when the button is being clicked?

    Thanks a lot for your help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • lisa

    (@contentiskey)

    Suggestion:

    Download the theme and heck the code for a free theme like https://www.ads-software.com/themes/twentyseventeen/ to see how the configuration is done for a mobile menu to open/collapse.

    Use the theme files as a model/guide for setting up the proper JavaScript and PHP functions so your site can operate in a similar way.

    Hello my website is https://www.oodaru.com. I have created it on wordpress. and the theme is WordPress Theme 775.
    (wordpress version 5.1.1)
    The side bar is changed upto the body (text) length. Could you please help me to fix the problem as look like on original WordPress Theme 775. I mean to help to reset the side bar on the left side.

    • This reply was modified 5 years, 8 months ago by ranjani.
    • This reply was modified 5 years, 8 months ago by ranjani.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘onclick-Function in WordPress Theme’ is closed to new replies.