• First, I love Book Lite. It’s a beautiful theme.

    I’m a newbie and I would like to move the “posted by admin to the end of the post. I don’t want all my categories cluttering up the flow of the post.

    Is this a template I can move? I don’t really know how to deal with templates, but I can learn.

    Thanks,
    Elizabeth
    elifair.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • You will need to start customising your theme’s template files via a child theme.

    Thread Starter elifair

    (@elifair)

    Thanks for the quick response. I’m really a newbie. I can see I have some studying to do. I’m not sure where to start to find the template files or to recognize that line of code.

    But I can see I need to learn this.

    Thanks.

    Have a look at Theme Development.

    Theme Author Chandra M

    (@nhuja)

    Hi elifair,

    Thank you for using Book Lite. ??

    Just a hint. Open up all the content.php and content-X.php files and look for

    <?php book_posted_by(); ?>

    Move that to wherever you want. Probably after this code bit just to try

    <!-- .entry-content -->

    Hope that helps.

    Thanks,
    Chandra

    Thread Starter elifair

    (@elifair)

    Dear Chandra, I couldn’t find the content-X-php files. I found content.php.

    Here’s what I found in that area.

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

    <div class="entry-meta">
    
    <?php book_posted_by(); ?>
    
    <?php if ( 'post' == get_post_type() ) : ?>
    		<div class="entry-meta">
    			<?php book_posted_by(); ?>
    
     					<?php
    						/* translators: used between list items, there is a space after the comma */
    						$categories_list = get_the_category_list( __( ', ', 'book' ) );
    						if ( $categories_list && book_categorized_blog() ) :
    					?>
    					<span class="cat-links">
    						 <?php _e( ' under ', 'book' ) ?><?php printf( $categories_list ); ?>
    					</span>
    				<?php endif; ?>

    Is this the correct spot? I see the “<?php book_posted_by(); ?>” which makes it seem like the right place. Can I just remove some of this code to end up with “by elifair” with no categories listed? The categories are given later in the post, so I don’t need them here.

    Any help would be appreciated. Thank you.

    Theme Author Chandra M

    (@nhuja)

    Yes please, content.php, content-image.php, etc, all those files that begin with content (thats why I just added X in there). Feel free to add it anywhere you want to keep.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘"posted by admin"’ is closed to new replies.