Click on image to open Popup

edited March 2019 in Theme support
hi.
on your demo page i've found shortcode to open a popup with button and text-link: https://themes.muffingroup.com/be/theme/shortcodes/typography/#popup

its possible to open the popup with click on image-link?

thanks

Comments

  • edited March 2019
    Hi,
    Yes, you can do it, but with this code - it require some basic HTML skills to add image in the content.
    Paste this code into the "Column" item
    <a href="#you-custom-id" target="_blank" rel="lightbox"><img src="linktoimage"/></a>
    <div id="you-custom-id" style="display:none">CONTENT HERE</div>
    Thanks
  • i think you dont understand me. i want to click on an image to open the popup. on your demo page it works when you click on a button or text-link.
  • edited March 2019
    Sorry, I misunderstood you.
    I updated the code above to do what you asked.

    Also, I removed one of your topics because the question was the same.
    Thanks

  • the updated code opened a new window without the (popup) content
  • This code works like this:
    http://prntscr.com/n0zif0

    I clicked on that image and the content which is provided in the '<div id="you-custom-id"></div>'  appeared - in this case the 'CONTENT HERE'

    There you can use the shortcodes and HTML code.
    Isn't that working for you? - send a link to your website.
    Thanks
Sign In or Register to comment.