• Resolved buzzinggrace

    (@buzzinggrace)


    Can someone please help me figure out how to get rid of a duplicate image on my eshop page?

    It has something to do with my theme: travel blogger, and eshop. I can not reproduce the error in twenty eleven.

    I really like this theme, except for the annoying duplicate image. So I would like to keep it if at all possible. Just wondering if someone could help me add some code to filter it or something.

    I am a volunteer for a school pta website, and a newbie when it comes to wordpress.

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Have you set the same image as a featured image and inserted it into your Post/Page?

    Thread Starter buzzinggrace

    (@buzzinggrace)

    Yes, it is both inserted on the page and set as featured image. If I delete it from the page and keep it as a featured image, it still duplicates.

    Page url?

    Thread Starter buzzinggrace

    (@buzzinggrace)

    eShop is not adding the second image. Perhaps it is coming from your theme or another plugin?

    Thread Starter buzzinggrace

    (@buzzinggrace)

    Yeah, it is coming from my theme. When I switch to twenty eleven, I get no duplicate.

    I can’t find out where it is coming from. It’s not in the function.php. I’ve been lookin for get_the_post_thumbnail. Is that right?

    Is there somewhere I can put add_filter so that I can trick my theme to only post a featured image on say, like, the home page? I don’t know how to do this. Hence, why I need help.

    Thanks

    Try looking for class="thumb_crop".

    Thread Starter buzzinggrace

    (@buzzinggrace)

    Is this it?

    //Adds images to excerpts
    function exp_add_image_excerpt($excerpt) {
    	$thumb = exp_get_meta_image();
    	if(!empty($thumb)) {$thumb = '<a href="'.get_permalink().'" style="background-image: url('.$thumb.');" class="thumb_crop">'.$thumb.'</a>'; }
    	return $thumb.$excerpt;
    }
    add_filter('the_excerpt','exp_add_image_excerpt');

    Looks like it…

    Thread Starter buzzinggrace

    (@buzzinggrace)

    Esmi, you rock! Thanks so much. That was it. Works great now.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Duplicate Featured Image on Page’ is closed to new replies.