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

    (@ellie87)

    Anyone?

    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

    http://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…

    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.