Home Forums Free Themes Travel Eye Travel Eye: Featured Trips – Image-Link

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #53213
    mrypoc
    Participant

    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

    #53277
    wensolutions
    Keymaster

    Hello @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_Themes

    You 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 .

    #53281
    mrypoc
    Participant

    Sorry, 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 😉

    #53291
    wensolutions
    Keymaster

    Hello @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!!

    #53292
    mrypoc
    Participant

    … no, not better … this code crashes my site 🙁

    #53312
    wensolutions
    Keymaster

    Hello @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!!

    #53349
    mrypoc
    Participant

    Yessss it works … it was my fault …. I did not copy the code correctly ,
    thx a lot !!

    #53394
    wensolutions
    Keymaster

    Hello @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 !!

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