WordPress.org

Ready to get started?Download WordPress

Forums

Book Lite
"posted by admin" (7 posts)

  1. elifair
    Member
    Posted 1 year ago #

    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

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    You will need to start customising your theme's template files via a child theme.

  3. elifair
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Have a look at Theme Development.

  5. Chandra M
    Member
    Theme Author

    Posted 1 year ago #

    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

  6. elifair
    Member
    Posted 1 year ago #

    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.

  7. Chandra M
    Member
    Theme Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic