Home › Forums › Free Themes › Photo Perfect › Change thumbnail photo link
Tagged: link thunbnail
- This topic has 11 replies, 2 voices, and was last updated 7 years, 6 months ago by wensolutions.
-
AuthorPosts
-
April 27, 2017 at 10:03 am #40731fabioParticipant
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 youApril 28, 2017 at 12:31 am #40769wensolutionsKeymasterHello @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.pngAlso can you you post your site URL once so we could inspect further ??
Hope this helps.
Best Regards!
April 28, 2017 at 11:16 am #40832fabioParticipantHello 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
May 1, 2017 at 5:15 am #41061wensolutionsKeymasterHello @fabio,
To link the photo you have create and activate the child theme.
Child theme references:
https://codex.wordpress.org/Child_ThemesYou 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!!
May 1, 2017 at 12:41 pm #41171fabioParticipantHello @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
FabioMay 1, 2017 at 11:50 pm #41191wensolutionsKeymasterHello @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!!
May 2, 2017 at 10:31 am #41463fabioParticipantHello 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 4022Notice: 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
May 3, 2017 at 12:11 am #41521wensolutionsKeymasterHello @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!!!
May 3, 2017 at 5:31 am #41554fabioParticipantHello 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
ThanksMay 3, 2017 at 7:37 am #41562wensolutionsKeymasterHello @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!
May 8, 2017 at 12:24 pm #42051fabioParticipantHello Wen
now it’s ok.
Thank You.
Best regardsMay 9, 2017 at 12:06 am #42094wensolutionsKeymasterHello @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!!!
-
AuthorPosts
- You must be logged in to reply to this topic.