Show description in blog post

My website: thisadventurelife.com.

I would like the view a preview of the blog below the title.

How is that possible?

Thanks!

Hi @shamus,

Thank you for reaching out to us. Did you mean to show a static description in single blog posts? Since you’ve a child theme setup, create a new file and name it _content-post-header.php and paste the following code inside:

<?php

// =============================================================================
// VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP
// -----------------------------------------------------------------------------
// Standard <header> output for various posts.
// =============================================================================

?>

<header class="entry-header">
  <?php if ( is_single() ) : ?>
    <?php x_entry_navigation(); ?>
    <h1 class="entry-title"><?php the_title(); ?></h1>
  <?php else : ?>
    <h2 class="entry-title">
      <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
    </h2>
  <?php endif; ?>
  <?php x_ethos_entry_meta(); ?>
  <p class="description">
	Your description
  </p>
</header>

Change the text “Your description” with your content, Then via FTP upload the file to /pro-child/framework/views/ethos/ in your child theme. If you don’t find a directory then create one so you have this path /pro-child/framework/views/ethos/

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.