This topic has 1 reply, 2 voices, and was last updated 9 years by Radu.

  • Author
  • #40828
     hoops
    Participant

    is it possible to display the post meta at the bottom of the post? instead of at the side…

    #40968
     Radu
    Moderator

    Hello,

    Create a file named content.php in your kleo-child folder

    and paste this

    COPY CODE
    
    <?php
    /**
     * The default template for displaying content
     *
     * Used for both single and index/archive/search.
     *
     * @package WordPress
     * @subpackage Kleo
     * @since Kleo 1.0
     */
    ?>
    
    <?php
    $postclass = '';
    if( is_single() && get_cfield('centered_text') == 1) { $postclass = 'text-center'; }
    ?>
    
    <!-- Begin Article -->
    <article id="post-<?php the_ID(); ?>" <?php post_class(array($postclass)); ?>>
    
    	<?php if (! is_single() ) : ?>
    		<h2 class="article-title entry-title">
    			<a>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'kleo_framework' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    		</h2>
    	<?php endif; //! is_single() ?>
    
    	
    	<?php if ( kleo_postmedia_enabled() && kleo_get_post_thumbnail() != '' ) : ?>
    
    		<div class="article-media">
    			<?php echo kleo_get_post_thumbnail( null, 'kleo-full-width' );?>
    		</div><!--end article-media-->
    
    	<?php endif; ?>
    
    
    	<div class="article-content">
    	<?php if ( ! is_single() ) : // Only display Excerpts for Search ?>
    
    		<?php echo kleo_excerpt( 50 ); ?>
    		<?php if ( get_the_excerpt() ): ?>
    			<p><a>"><?php _e("Continue reading", 'kleo_framework');?></a></p>
    		<?php endif; ?>
    
    	<?php else : ?>
    
    		<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'kleo_framework' ) ); ?>
    		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'kleo_framework' ), 'after' => '</div>' ) ); ?>
    
    	<?php endif; ?>
    	
    	<?php if( kleo_postmeta_enabled() ): ?>
    		<div class="article-meta">
    			<span class="post-meta">
    				<?php kleo_entry_meta();?>
    			</span>
    			<?php edit_post_link( __( 'Edit', 'kleo_framework' ), '<span class="edit-link">', '</span>' ); ?>
    		</div><!--end article-meta-->
    	<?php endif;?>
    	
    	
    	</div><!--end article-content-->
    
    </article><!--end article-->
    
    <style>
    .single .container .with-meta .article-content, .posts-listing.standard-listing.with-meta .article-content {
    margin-left: 0;
    padding: 0 0 40px;
    }
    
    article .article-meta {
    float: none;
    text-align: center;
    margin: 0 auto !important;}
    </style>
    

    This applies only to standard formats of posts.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?