• Hi there,

    I know that it’s frowned upon, but I’ve had help with my blog on this site while using my current theme. Unfortunately I’ve asked my theme’s developer for help to no avail ;). I’m looking to just remove featured images from the actual blog posts but maintain them on my home feed.

    It should be a quick fix if someone could just help me with the css. I’d really appreciate it.

    Thanks for your help,
    Betty

Viewing 12 replies - 1 through 12 (of 12 total)
  • Depends on theme u using. share your single.php

    Thread Starter Bettyandbaby

    (@bettyandbaby)

    Here’s an example of what I mean:
    https://www.bettyandbaby.com/babys-best-zzzs

    There’s a single post page. I’m using the Zephyr theme and really have no css knowledge (sorry :/) so I’ve added simple css to my widgets. Looked through some old troubleshooting forum posts and tried adding to my css widget but either did it wrong (sounds laughable but I wasn’t sure whether to add it below any lines I’ve already added or what) or the css correction wasn’t correct.

    Thank you for helping this lamen!

    Where did you get your theme?

    Can u share single.php? then I can say which code you have to remove to disable featured post of image

    And BTW, don’t modify theme files – if you do, you will lose all of those changes when you update the theme – you should use a child theme to make that kind of modification.

    https://codex.www.ads-software.com/Child_Themes

    R u kidding? A single.php is something like that:

    <?php get_header(); ?>
    
    	<main role="main">
    	<!-- section -->
    	<section>
    
    	<?php if (have_posts()): while (have_posts()) : the_post(); ?>
    
    		<!-- article -->
    		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    			<!-- post thumbnail -->
    			<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
    				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
    					<?php the_post_thumbnail(); // Fullsize image for the single post ?>
    				</a>
    			<?php endif; ?>
    			<!-- /post thumbnail -->
    
    			<!-- post title -->
    			<h1>
    				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    			</h1>
    			<!-- /post title -->
    
    			<!-- post details -->
    			<span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
    			<span class="author"><?php _e( 'Published by', 'html5blank' ); ?> <?php the_author_posts_link(); ?></span>
    			<span class="comments"><?php if (comments_open( get_the_ID() ) ) comments_popup_link( __( 'Leave your thoughts', 'html5blank' ), __( '1 Comment', 'html5blank' ), __( '% Comments', 'html5blank' )); ?></span>
    			<!-- /post details -->
    
    			<?php the_content(); // Dynamic Content ?>
    
    			<?php the_tags( __( 'Tags: ', 'html5blank' ), ', ', '<br>'); // Separated by commas with a line break at the end ?>
    
    			<p><?php _e( 'Categorised in: ', 'html5blank' ); the_category(', '); // Separated by commas ?></p>
    
    			<p><?php _e( 'This post was written by ', 'html5blank' ); the_author(); ?></p>
    
    			<?php edit_post_link(); // Always handy to have Edit Post Links available ?>
    
    			<?php comments_template(); ?>
    
    		</article>
    		<!-- /article -->
    
    	<?php endwhile; ?>
    
    	<?php else: ?>
    
    		<!-- article -->
    		<article>
    
    			<h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>
    
    		</article>
    		<!-- /article -->
    
    	<?php endif; ?>
    
    	</section>
    	<!-- /section -->
    	</main>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    That is very basic single.php. Go to wpadmin>Appearance>Editor>single.php then copy all code and edit above code and pest there.

    Please do not past entire files here – use a pastebin – read the link I Posted above. We delete large code files.

    Thread Starter Bettyandbaby

    (@bettyandbaby)

    Hmmm, didn’t work.

    Thread Starter Bettyandbaby

    (@bettyandbaby)

    And now single.php is sitting at the top of my blog when viewed on mobile. lol

    Thread Starter Bettyandbaby

    (@bettyandbaby)

    deleted it, but haven’t figured out featured image issue.

    And the developer will be the place to ask this…

    https://codex.www.ads-software.com/Forum_Welcome#Commercial_Products

    EDITED – if he/she isn’t helpful, maybe you should consider using another theme that is supported here :).

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Need to remove featured image from blog post, not home site’ is closed to new replies.