• Resolved TheCrack

    (@thecrack)


    I changed the date of place, instead of appearing below the thumbnails of the inputs, appears below the title, problem ?, which only change has been made in the home, and I want it done on every page.

    I’ve been thinking and perhaps this influence this:

    https://wordpress.org/support/topic/standat-blog-list-from-page-2?replies=11

    <?php if ( have_posts() ) : ?>
    
    	<!-- if we're on a mobile device, or if we're on the main home page, don't use Standard Blog List -->
    	<?php $use_std_blog_list = true;
    		if ( wp_is_mobile() || ( is_home() && ! is_paged() ) ) {
    			$use_std_blog_list = false;
    		}
    	?>
    
    	<?php if ( ot_get_option('blog-standard') == 'on' && $use_std_blog_list ): ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi TheCrack. If I understand what you’re asking, on the home page, the date is shown below the post title, and you’d like it to be the same way on the other pages that are displayed in the Standard Blog List format. If that’s the case, the easiest solution would be to copy content-standard.php to your child theme and move the post-title code above the post-meta code so it looks like this:

    <div class="post-content">
    
    	<h2 class="post-title">
    		<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    	</h2><!--/.post-title-->
    
    	<div class="post-meta group">
    		<p class="post-category"><?php the_category(' / '); ?></p>
    		<p class="post-date"><?php the_time('j M, Y'); ?></p>
    	</div><!--/.post-meta-->
    
    	<?php if (ot_get_option('excerpt-length') != '0'): ?>
    	<div class="entry excerpt">
    		<?php the_excerpt(); ?>
    	</div><!--/.entry-->
    	<?php endif; ?>
    
    </div><!--/.post-content-->
    Thread Starter TheCrack

    (@thecrack)

    Thank you very much bdbrown, did not know existed file content-standard.php.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Relocate the date’ is closed to new replies.