Home › Forums › Free Themes › Travel Eye › Travel Eye: Featured Trips – Image-Link
- This topic has 7 replies, 2 voices, and was last updated 7 years, 2 months ago by wensolutions.
-
AuthorPosts
-
September 13, 2017 at 11:14 am #53213mrypocParticipant
How can I put a link in the images of the “Travel Eye: Featured Trips Widget” ?
(the field close to the image named “external url” does not work)
Today the url is only linked to the text, I want that the link also works if you click on the image.thx
September 14, 2017 at 2:01 am #53277wensolutionsKeymasterHello @mrypoc,
To put the link in the images of the “Travel Eye: Featured Trips Widget” you have to activate the child theme .
Child theme reference :
https://codex.wordpress.org/Child_ThemesYou can also create the child theme using the plugin given below:
https://wordpress.org/plugins/wp-child-theme-generator/After creating the child theme in your child theme create the file default.php and paste below given code.
https://gist.github.com/anonymous/6e7a5a01fa7b34c812f26906674e6553
Hope this helps .
Best Regards!!
Have a god day .
September 14, 2017 at 2:56 am #53281mrypocParticipantSorry, but I did not get this to work.
I do already use a child theme.
So I put the code I copied from github into a file , named it “default.php”,
and put it in the root of my child theme.Is that the correct way, because nothing happened.
Theres is still no link when I click on the image within the “Travel Eye: Featured Trips Widget”
(and I did put the link into the “external url” field)regards Herbert 😉
September 14, 2017 at 4:14 am #53291wensolutionsKeymasterHello @mrypoc,
We would like to apologize that we forgot to mention one more steps .
In your child theme functions.php file please add below given code .
function travel_eye_child_featured_trips_template_file( $filename, $instance, $widget ){ // And this one for themes $filename = get_stylesheet_directory() . '/default.php'; return $filename; } add_filter( 'siteorigin_widgets_template_file_travel-eye-featured-trips', 'travel_eye_child_featured_trips_template_file', 10, 3 );
Hope this helps .
Best Regards!!
September 14, 2017 at 4:33 am #53292mrypocParticipant… no, not better … this code crashes my site 🙁
September 14, 2017 at 5:05 am #53312wensolutionsKeymasterHello @mrypoc,
When we checked by activating the child theme locally there are no such problem .
So please make sure you have activated all the plugin recommended by the theme .
Also make sure you have included the correct code in your child theme as per our instruction .
If this does not solve your issue then we please send us the screen shot of the functiosn.php of your child theme and default.php file .
Thank you .
Best Regards!!
September 14, 2017 at 9:51 am #53349mrypocParticipantYessss it works … it was my fault …. I did not copy the code correctly ,
thx a lot !!September 14, 2017 at 11:27 pm #53394wensolutionsKeymasterHello @mrypoc,
Nice to know that your issue is resolved .
If you have any issues further, please feel free to post your queries and we will happily help you further.
We will really appreciate if you could help us too by rating our theme in WordPress repo here:-
https://wordpress.org/support/theme/travel-eye/reviews/
Best regards !!
-
AuthorPosts
- You must be logged in to reply to this topic.