Home Forums Free Themes Photo Perfect Replace pop up image with link to blog entry

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1827
    ben2
    Participant

    I would love to be able to replace the functionality of the popup image when you click on a masonry tile with a link to go into the individual post, does anyone know how to do this? My website is http://obrien-photo.com Thank you.

    #2566
    wensolutions
    Keymaster

    Hello @ben2,

    There are two options for layout of theme, Masonry and Post Excerpt.
    Go to Appearance > customize > Theme options > Layout Options > Archive Layout.

    This should get rid of masonry layout.

    You have to write some custom code to remove the two icons.
    The best way to make changes like this to a theme is to use a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:
    https://codex.wordpress.org/Child_Themes

    Copy the file content-masonry.php and it’s parent folders from parent theme into child theme. Now, you have to delete all the existing codes of line 22 of ‘content-masonry.php’ & paste this one in exactly the same line.

    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >

    And to remove the two circles, delete the codes from line 36 to 39 of ‘content-masonry.php’.

    Note: ‘content-masonry.php’ is inside ‘template-parts’ folder.

    Regards

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