• Resolved twitmytwat

    (@twitmytwat)


    I started getting mini horizontal pictures appearing in between my post title and the post body. It doesn’t happen on all posts. Can someone tell me what code I need to change to fix this?

    I am using the latest wordpress and my theme is adventure journal.

    I have been trying plugins and I suspect one of them is causing this. I first got a small similar issue when I installed a widget that showed thumbnail pictures of my top posts in the sidebar. I removed the widget and kept uploading posts.

    I then installed IGIT related posts pluggin that showed thumbnails after the post. To make it run better I used auto post thumbnail so all my posts have thumbnails and i get less “no images thumbnails”.

    Now the majority of my posts have a mini pic between the post title and the post body. Take a look at my site, note that it is not safe for work. http://www.twitmytwat.com

Viewing 8 replies - 1 through 8 (of 8 total)
  • esmi

    (@esmi)

    That is your theme’s featured image.

    Thread Starter twitmytwat

    (@twitmytwat)

    do you know how I can remove it from the homepage and in the posts?

    esmi

    (@esmi)

    You would need to start editing the relevant template file in your theme (index.php?) and removing references to <?php the_post_thumbnail();?>.

    Thread Starter twitmytwat

    (@twitmytwat)

    I found this in the loop file. I dont have anything related to the post thumbnail in index.php

    <?php edit_post_link( __( 'Edit', 'adventurejournal' ), '<span class="edit-link">', '</span>' ); ?>
    			<h2 class="entry-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'adventurejournal' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                            <?php if(is_home() && has_post_thumbnail() && $themeOpts['featured-header']!='true' ) the_post_thumbnail(); ?>
    			<div class="entry-meta">
    				<?php ctx_aj_posted_on(); ?>
    			</div><!-- .entry-meta -->

    what should I remove exactly. Sorry im new to coding.

    [Moderator Note: Please post code snippets between backticks or use the code button.]

    esmi

    (@esmi)

    Try removing <?php if(is_home() && has_post_thumbnail() && $themeOpts['featured-header']!='true' ) the_post_thumbnail(); ?>

    Michael

    (@alchymyth)

    looks like you might be able to influence that from within the theme’s options (with the ‘custom header images’ option ticked):

    this code is from loop.php to show the thumbs on the posts page:

    <?php if(is_home() && has_post_thumbnail() && $themeOpts['featured-header']!='true' ) the_post_thumbnail(); ?>

    this is from single.php:

    <?php if($themeOpts['featured-header']!='true') { the_post_thumbnail(); } ?>

    or remove the above sections.

    Thread Starter twitmytwat

    (@twitmytwat)

    THX that worked!

    And I figured out what to remove from the single posts as well. THX ESMI!

    esmi

    (@esmi)

    No problem 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[NSFW] Sudden thumbnail image appears between title and post body’ is closed to new replies.