• Resolved da1k

    (@da1k)


    Hello,

    Is it possible to change masonry view to such that whole picture is clickable and directs to post?

    best regards,

Viewing 11 replies - 1 through 11 (of 11 total)
  • There are two options for layout of theme, Masonry and Post Excerpt.
    Go to Appearance > customize > Theme options > Layout Options > Archive Layout.
    Find the Documentation of Theme Photo Perfect.

    Thanks

    Thread Starter da1k

    (@da1k)

    OK. That’s I know πŸ™‚ I would like that in Masonry layout whole tile will be link to post (it is ok for me to remove these two circles)

    You have to write some custom code to remove this two circle.
    Note: Child theme is recommended to customize theme.
    Thanks

    Thread Starter da1k

    (@da1k)

    Could you help me with this code? πŸ™‚

    Ok, so to make the whole div clickable and to make it redirect to the concerned post page, 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.

    Thanks!

    Thread Starter da1k

    (@da1k)

    Hello,

    Thank you πŸ™‚

    Hi sorry where is the template parts folder? Thanks!

    Hi,

    I think I am in the right folder now but I’m not sure which is line 22 and which line is 36-39. Sorry I’m new to this! Thanks!

    Hello @champagne07,
    Don’t get confused. If you are using any code editor like notepad++, sublime text editor etc then, you would see the line no. on left bar of the code editor panel. Take a look at the screenshot: http://prntscr.com/9luhaq

    Note: This screenshot is taken form sublime text editor.
    Thanks!

    Hi,

    Sorry I’ve never edited any text. :/ can I do this directly in WordPress. Sorry I’m totally useless when it comes to this coding stuff.

    Thanks again!

    I still can’t figure it out. I’m not sure why what I’m doing wrong. I’ll keep trying. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Changing masonry’ is closed to new replies.