Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
May 14, 2020 at 1:38 pm #1212947
Dear Team,
How to display the category type and post date in single post page below the big images.
May 20, 2020 at 6:43 am #1214518Hey Vadivel,
Thank you for the inquiry.
If you want to move the category below the featured image, you have to modify the theme’s includes > loop-index.php file, and look for this code.
//elegant blog //prev: if( $blog_global_style == 'elegant-blog' ) if( strpos( $blog_global_style, 'elegant-blog' ) !== false ) { $cat_output = ''; if( ! empty( $cats ) ) { $cat_output .= '<span class="blog-categories minor-meta">'; $cat_output .= $cats; $cat_output .= '</span>'; $cats = ''; } if ( in_array( $blog_style, array( 'bloglist-compact', 'bloglist-excerpt' ) ) ) { echo $title; } else { // The wrapper div prevents the Safari reader from displaying the content twice ¯\_(ツ)_/¯ echo ' <div class="av-heading-wrapper">'; if( strpos( $blog_global_style, 'modern-blog' ) === false ) { echo $cat_output . $title; } else { echo $title . $cat_output; } echo '</div> '; }Move it above these lines:
$cats = ''; $title = ''; $content_output = '';Best regards,
IsmaelMay 20, 2020 at 10:30 am #1214610After the category type i need post date.in the same line.
Example category type | Mar 10 2020
May 25, 2020 at 8:51 am #1216027Hi,
In the previous code, look for this line:
else { echo $title . $cat_output; }.. then add this snippet below it.
echo "<span class='text-sep text-sep-date'>/</span>"; echo "<time class='date-container minor-meta updated' >" . get_the_time( get_option( 'date_format' ) ) . '</time>';Best regards,
Ismael -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
