• Hi

    I need to remove the ‘Featured’, ‘Date’ and ‘Comments’ from my Twenty Eleven child theme sticky post that I have on my landing page.

    I am finding it hard to find any information that show what functions I will need to override and what files they reside in. Does anyone know what I need to override and help point me in the right direction.

    I’m thinking something like the if statement below, but will probably be more than this alone!!

    if(is_sticky()){ //remove 'Featured', 'Date' and 'Comments' }

    view source code below from firebug, thanks in advance!

    Post header

    <article id="post-190" class="post-190 post type-post status-publish format-standard sticky hentry category welcome">
    		<header class="entry-header">
    							<hgroup>
    					<h2 class="entry-title"><a href="https://localhost/sitename" title="Permalink to name" rel="bookmark">Photography</a></h2>
    					<h3 class="entry-format">Featured</h3>
    				</hgroup>
    
    						<div class="entry-meta">
    				<span class="sep">Posted on </span><a href="https://localhost/sitename/" title="5:33 pm" rel="bookmark"><time class="entry-date" datetime="2012-12-06T17:33:09+00:00" pubdate>December 6, 2012</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="https://localhost/sitename/author/user/" title="View all posts by user" rel="author">user</a></span></span>			</div><!-- .entry-meta -->
    
    						<div class="comments-link">
    				<a href="https://localhost/sitename/photography/#respond" title="Comment on Photography"><span class="leave-reply">Reply</span></a>			</div>

    post footer

    <footer class="entry-meta">
    												<span class="cat-links">
    				<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> <a href="https://localhost/sitename/category/welcome/" title="View all posts in Welcome to Photogarphy" rel="category tag">Welcome to Photogarphy</a>			</span>
    
    									<span class="sep"> | </span>
    						<span class="comments-link"><a href="https://localhost/sitename/photography/#respond" title="Comment on Photography"><span class="leave-reply">Leave a reply</span></a></span>
    
    			<span class="edit-link"><a class="post-edit-link" href="https://localhost/sitename/wp-admin/post.php?post=190&action=edit" title="Edit Post">Edit</a></span>		</footer><!-- #entry-meta -->
    	</article><!-- #post-190 -->
Viewing 1 replies (of 1 total)
  • Thread Starter foodboy

    (@foodboy)

    hello, I think I need to add is_Sticky() condition to the loop in index.php i think I need to add some code under <?php while ( have_posts() ) :, but not sure what for Twenty Eleven theme?

    hope someone can help! Thanks

    <?php if ( have_posts() ) : ?>
    				<?php twentyeleven_content_nav( 'nav-above' ); ?>
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', get_post_format() ); ?>
    
    				<?php endwhile; ?>
    
    				<?php twentyeleven_content_nav( 'nav-below' ); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘How do you remove 'Featured', 'Date' and 'Comments' from Sticky Post?’ is closed to new replies.