• sheep1979

    (@sheep1979)


    Hi guys just wondering how do I remove post tags.

    I could only put a post on the homepages but I want to remove the tags, the ones that say

    ‘Posted on November 30, 2010 by admin’ and ‘Posted in Uncategorized | Leave a comment’

    I use Twenty Ten 1.0 by the WordPress team template, here are the 2 websites where I want to remove the text

    https://solicitors-newbridge-murphy.com/

    & https://kavanaghs-pub-naas.com/

    If possible I could make the post into a page or simply change the code to leave out these details on posts- but I don’t know how ?? can anyone please advise ?

    Thanks,

    Festivalpig

    (I use WordPress 3.0.2)

Viewing 3 replies - 1 through 3 (of 3 total)
  • vtxyzzy

    (@vtxyzzy)

    First, I strongly urge you to make a child theme. Otherwise, the next release of TwentyTen will wipe out your changes.

    Once you have done that, copy loop.php from the original TwentyTen to your child folder. You will be modifying the section of code near the bottom between these two lines:

    <?php /* How to display all other posts. */ ?>
    
    /*==========lots of other lines in here ============*/
    
    	<?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>

    You need to change that section to this:

    <?php /* How to display all other posts. */ ?>
    
    	<?php else : ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
    	<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>
    
    		</div><!-- #post-## -->
    
    		<?php comments_template( '', true ); ?>
    
    	<?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>
    Thread Starter sheep1979

    (@sheep1979)

    Hi vtxyzzy,

    Thanks for answering my question, I made the changes to the parent files.

    I was not aware that wordpress updates a theme automatically. Is there a way to stop this ? both websites are now finished for my clients and they will not need changing or upgrading.

    I tried to create a child directory after reading this

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

    but I could not access the area ‘wp-content/themes’ in any of my wordpress websites. Should I use a plug-in to create a child directory ?

    Also does it make difference if my parent theme is edited the same as my child theme ?

    Thanks again,

    Sheep1979

    Will an upgrade to twenty ten theme wipe my graphics and text too ?

    The default themes that come with WP get updated automatically whenever there is a new WP release because they are bundled with the release.

    You don’t use a plugin to create a child directory, at least not that I am aware of.

    You access the themes directory using ftp, or your host’s control panel/file manager. You use one of those tools to create the child folder and copy the required php and css files into it. Then, you can activate the child theme and use the theme editor to change the code.

    A WP upgrade should not change anything that is contained in posts or pages, or any files you have uploaded.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing 'sticky' text’ is closed to new replies.