A few users have asked if it’s possible to display the popup when the announcement image is clicked. While it certainly is possible, it does require a small code snippet added to your theme to enable this functionality.
Below, we’ve gone ahead and written a small code example of how this can be achieved. You’ll notice that all we are doing, in the code below, is wrapping the announcement image in an anchor tag
and adding an onclick attribute to the anchor tag to simulate clicking the ‘Read More’ link. This is a small workaround and allows for the images to be used as ‘Read More’ links.
This technique can also be used on any other elements on the timeline, allowing you to make the announcement title or announcement date as the controller to open the popups.
The code below will need to be added into your themes functions.php file, exactly as it’s written. Ideally, you would want to add the code inside of the
See It In Action