[Support request] Open menu with click on image in page

Home Forums Support [Support request] Open menu with click on image in page

Home Forums Support Open menu with click on image in page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1640651
    Arved

    Hello,

    Is it possible to unfold/un-collapse the menu with clicking on an image on the page? (Not talking about images within the menu)

    Website: https://arvedgintenreiter.com

    In desktop view the menu on my website is unfolded all the time. In mobile view the menu is collapsed – as it should be.

    In mobile view I’d prefer to unfold the menu as it does now with clicking on it and additionally also when somebody clicks the main image on the page.

    Is that even possible, maybe with adding an action to the functions?

    Would be happy if somebody has an idea how this could be solved.

    Thanks and best,
    Arved

    #1641218
    Elvin
    Staff
    Customer Support

    Hi there,

    It should be possible with scripting.

    You can assign a “click” eventListener to an image element so when the image is clicked, it opens up the menu.

    A wise man once said:
    "Have you cleared your cache?"

    #1641263
    Arved

    Thanks Elvin for your quick reply,

    Might be beyond my capabilities but I will try πŸ™‚

    #1641311
    Elvin
    Staff
    Customer Support

    To point you to a direction, try reading about these:

    https://www.w3schools.com/jsref/met_element_addeventlistener.asp
    https://www.w3schools.com/jsref/met_html_click.asp

    No problem. πŸ™‚

    A wise man once said:
    "Have you cleared your cache?"

    #1641338
    Arved

    Thank you, Elvin!

    #1642471
    Elvin
    Staff
    Customer Support

    No problem. πŸ™‚

    A wise man once said:
    "Have you cleared your cache?"

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.