• Ellie87

    (@ellie87)


    hello, hope someone can help. I’m trying to maximize my website and wold like to be able, if possible to disable image from linking on page.
    All my images have a link that redirect me to a sort of slider with pictures that I do Not want to show here is a link of example:
    https://www.sicilysensations.com/en/header/
    my website is https://www.sicilysensations.com. Any help and guide to solve the issue would be very appreciated.
    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Ellie87

    (@ellie87)

    Anyone?

    Menaka S.

    (@menakas)

    Hi Ellie87,
    If you do not want the featured page images to link to the page, add this code to your child theme’s functions.php

    add_filter( 'tc_fp_round_div','my_fp_img_link');
    function my_fp_img_link($content) {
    	return str_replace("href","data-junk",$content);
    }
    Thread Starter Ellie87

    (@ellie87)

    Thanks for reply,unfortunately the code did not work for me. ??

    Thread Starter Ellie87

    (@ellie87)

    this is what I see for example

    https://www.sicilysensations.com/favicon

    this favicon is loaded as a favicon why do I see it in this gallery? is there a way to remove links from media?

    Thanks for help

    Thread Starter Ellie87

    (@ellie87)

    I seem to understand that it is a post navigation page, becouse if I move to “next” with the arrow it shows more pictures that are actually just media uploaded for customizing the theme, I mean many of this media does not belong to a real post (like logo, favicon ect) so is there a way to eliminate the navigation post link? Hope someone can help I’ve been looking everywhere for codes, but nothing… ??

    Thread Starter Ellie87

    (@ellie87)

    So it would be a code to remove post navigation page…

    DS_beginner

    (@ds_beginner)

    I’m looking for the same thing. I don’t want the featured pages images to be links and have trie the code above but it didn’t work. How can I remove the links?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable image from linking on page’ is closed to new replies.