• Hi everyone, I have a question regarding how to open an image gallery in my portfolio. Can I open the gallery by clicking anywhere on the image or just on the Image title? At the moment I only found out how to do it by clicking on the image title. I would prefer to open it by clicking anywhere on the picture itself. At the moment I can only enlarge the certain image by enabling Image Gallery on Portfolio Grid, but that is not what I need. I would like to open the whole gallery for my project.
    Please see the below link to understand what I mean.

    [ redundant link removed ]

    The blog I need help with is [ redundant link removed ]

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You have to overwrite the your current theme with child theme add a custom code or create function for that. I did something similar in my case. That is one of doing it.

    Thank You

    Moderator bcworkz

    (@bcworkz)

    To have the large image viewer open on the initial page instead of needing to go through a separate gallery page, all of each gallery’s images need to be fully declared on the initial page. How you would get a different gallery’s image viewer to open from each image depends on the viewer code. I recommend getting advice from the author of the viewer code.

    OTOH, linking to a new page from the image instead of just the title is much more doable. Essentially, each image tag needs to be wrapped in its own anchor tag which links to the same place as the title. HTML roughly like this:

    <a href="URL to gallery page goes here"><img src="image file URL goes here"></a>
    <a href="URL to gallery page goes here">Title Goes Here</a>

    You already have the img tag and title link, add the title’s anchor tags to the img tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enable Click Image Gallery’ is closed to new replies.