Home Forums Free Themes Photo Perfect Change thumbnail photo link

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #40731
    fabio
    Participant

    Hello
    your theme is very nice and usable.
    I would like the link on the photo thumbnail is a link to the post page (like a link on title) and not to open the photo.
    Is it possible?
    Thank you

    #40769
    wensolutions
    Keymaster

    Hello @fabio,

    You can find the link icon in the thumbnail which will link to the post as you can see in the below screen shot .
    http://image.prntscr.com/image/5718158373f84edcaa4cf12a8a680729.png

    Also can you you post your site URL once so we could inspect further ??

    Hope this helps.

    Best Regards!

    #40832
    fabio
    Participant

    Hello Wen solutions
    thanks, buit i know what you mean. I try to explain it better. I ask if is it possible that the click on the photo open the post and not the photo?

    How can i send you an example of what i mean?

    Best regards

    #41061
    wensolutions
    Keymaster

    Hello @fabio,

    To link the photo you have create and activate the child theme.

    Child theme references:
    https://codex.wordpress.org/Child_Themes

    You can also create the child theme using plugin . Below is the link to one of them.

    https://wordpress.org/plugins/wp-child-theme-generator/

    After creating the child theme create content-masonry.php file in your child theme and paste below given code.

    https://gist.github.com/anonymous/0a15570eae02b3b60e90304996f2b743

    Then in your child themes functions.php include below given code.

    function photo_perfect_load_archive_loop_content(){
    
        $archive_layout = photo_perfect_get_option( 'archive_layout' );
        if ( 'masonry' === $archive_layout ) {
          get_template_part( 'content', 'masonry' );
        }
        else if ( 'full' === $archive_layout ) {
          get_template_part( 'template-parts/content', 'full' );
        }
        else{
          get_template_part( 'template-parts/content', get_post_format() );
        }
    
      }

    Hope this helps.

    If you have any confusion while achieving this result, please let us know.

    Best Regards!!

    #41171
    fabio
    Participant

    Hello @Wen
    i have created and activated the child theme but when upload the content-masonry.php file in child theme folder i get error 500.
    Could you help me?
    Thanks
    Fabio

    #41191
    wensolutions
    Keymaster

    Hello @fabio,

    As we have checked the issue locally we are unable to find such issue and child theme is working fine.

    So once go to wp-config.php file and set WP_DEBUG as true and check. Also check the permissions on the child theme files .

    Let us know if the above problem has solved the issue or not .

    Best Regards!!

    #41463
    fabio
    Participant

    Hello Wen
    these are the error tha appeare:
    Notice: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/vhosts/aspecialday.it/httpdocs/wp-includes/functions.php on line 4022

    Notice: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/vhosts/aspecialday.it/httpdocs/wp-includes/functions.php on line 4022

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/aspecialday.it/httpdocs/wp-includes/functions.php:4022) in /var/www/vhosts/aspecialday.it/httpdocs/wp-includes/pluggable.php on line 1195

    Thanks

    #41521
    wensolutions
    Keymaster

    Hello @fabio,

    Above issue you have mentioned might be due to the use of any third party plugin. So, if you have installed any third party plugins then please try disabling them one by one and check you site if the issue is fixed. If the issue is fixed you will know the exact plugin that have created the issue.

    But if the issue still continues then kindly let us know.

    Also the code we have provided worked fined when we have tested it locally .

    Best Regards!!!

    #41554
    fabio
    Participant

    Hello Wen
    i have deactivated all plugin except wp child theme generator and included the code in function.php
    Now the error is this:
    Parse error: syntax error, unexpected ‘if’ (T_IF) in /var/www/vhosts/aspecialday.it/httpdocs/wp-content/themes/photo-perfect-child/functions.php on line 22
    Thanks

    #41562
    wensolutions
    Keymaster

    Hello @fabio,

    We would like to request you to recheck the code you have included in your child theme folder because the code we have provided is working fine .

    So it would be easier if you make a new child theme and follow the instruction we mentioned in earlier reply .

    Hope it helps.

    Best Regards!

    #42051
    fabio
    Participant

    Hello Wen
    now it’s ok.
    Thank You.
    Best regards

    #42094
    wensolutions
    Keymaster

    Hello @fabio,

    Nice to know that your issue is solved.

    If you have any issue further related to the theme, then please let us .

    Best Regards!!!

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