Support » Fixing WordPress » Remove Author and Time tag from Carrington Blog

  • At the end of articles on pages I get the Author and Time tag. I am using the Carrington theme, and have removed the author code from pages-default.php, but it is still there.

    I also added the code
    .entry-meta, .entry-utility {
    display:none;
    }
    to css.php but that did not help either.

    Anyone have ideas how to remove this from the Carrington theme?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Carrington Theme’s templates are located on inner folders.

    The file you need to edit is <carrington_folder>/content/content-default.php

    To remove the tags from pages, should you edit <carrington_folder>/content/page.php

    Don’t forget to backup the files. =)

    kinds,
    Ruan Carvalho

    Many thanks! Does that mean I cannot use the wordpress control panel to edit? I can get to the content-default.php, but there is no tag there that I can see. The page.php seems to not be accessible from the wordpress control panel?

    The content-default.php file is editable in the control panel, and is the correct template for Carrington. The tag is right before “<p class=”comments-link”>”.

    I think the page.php file is not acessible from control panel. Couldn`t find it too.

    Not quite clear to me what I should remove. This is what I have around comments-link:

    <p class="filed categories alt-font tight"><?php printf(__('Posted in %s.', 'carrington-blog'), get_the_category_list(', ')); ?></p>
    	<?php the_tags(__('<p class="filed tags alt-font tight">Tagged with ', 'carrington-blog'), ', ', '.</p>'); ?>
    
    	<p class="comments-link"><?php comments_popup_link(__('No comments', 'carrington-blog'), __('1 comment', 'carrington-blog'), __('% comments', 'carrington-blog')); ?></p>

    I tried removing

    <?php the_tags(__('<p class="filed tags alt-font tight">Tagged with ', 'carrington-blog'), ', ', '.</p>'); ?>

    but it had no effect?

    In the content-default.php file, try to find the following code:

    <p class="by-line">
                    <span class="author vcard full-author">
                            <?php printf(__('<span class="by alt-font">By</span> %s', 'carrington-blog'), '<a class="url fn" href="'.get_author_posts_url(get_the_author_meta('ID')).'" title="View all posts by ' . attribute_escape(get_the_author()) . '">'.get_the_author().'</a>') ?>
                    </span>
                    <span class="date full-date"><span class="ndash alt-font">&ndash;</span> <abbr class="published" title="<?php the_time('Y-m-d\TH:i'); ?>"><?php the_date(); ?></abbr></span>
            </p><!--/by-line-->

    In original file it’s in line 49. These two spans, inside <p>, have the author text and time text, respectively. The WP functions which print them are “get_the_author()” and “the_date()”.

    You change it or remove/comment this entire code, as well.

    Hope it helps. =)

    Thanks again for your response. However, the tags are not there? This is all the code. Perhaps is the first global setting?

    if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
    if (CFCT_DEBUG) { cfct_banner(__FILE__); }
    
    global $previousday, $authordata;
    $previousday = -1;
    
    ?>
    <div id="post-content-<?php the_ID() ?>" <?php post_class('full'); ?>>
    
    	<h1 class="entry-title full-title"><a href="<?php the_permalink() ?>" title="Permanent link to <?php the_title_attribute() ?>" rel="bookmark" rev="post-<?php the_ID(); ?>"><?php the_title() ?></a></h1>
    
    	<div class="entry-content full-content">
    <?php
    		the_content('<span class="more-link">'.__('Continued...', 'carrington-blog').'</span>');
    		$args = array(
    			'before' => '<p class="pages-link">'. __('Pages: ', 'carrington-blog'),
    			'after' => "</p>\n",
    			'next_or_number' => 'number'
    		);
    		wp_link_pages($args);
    ?>
    		<div class="clear"></div>
    	</div><!-- .entry-content-->
    
    	<p class="filed categories alt-font tight"><?php printf(__('Posted in %s.', 'carrington-blog'), get_the_category_list(', ')); ?></p>
    	<?php the_tags(__('<p class="filed tags alt-font tight">Tagged with ', 'carrington-blog'), ', ', '.</p>'); ?>
    
    	<p class="comments-link"><?php comments_popup_link(__('No comments', 'carrington-blog'), __('1 comment', 'carrington-blog'), __('% comments', 'carrington-blog')); ?></p>
    
    	<div id="post-comments-<?php the_ID(); ?>-target"></div>
    	<div class="clear"></div>
    
    	<?php edit_post_link(__('Edit', 'carrington-blog'), '<div class="edit-post edit">', '</div>'); ?>
    </div><!-- .post -->
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Author and Time tag from Carrington Blog’ is closed to new replies.