Add data on top of post on 'affiliate links'

Hi team, how can I add this text to the top of my blog posts please? Attached sample

Hi There,

Thanks for writing in! First you need to setup a child theme and activate it. Refer to the following article (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

Then create a file name _content-post-header.php under your child theme.
/x-child/framework/views/integrity/_content-post-header.php

Then using a text editor, copy the following code and paste it into the file you created.

<?php

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

?>

<header class="entry-header">
  <?php if ( is_single() ) : ?>
  <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_integrity_entry_meta(); ?>
  <p>Add your affiliate <a href="#55">disclosure here.</a></p>
</header>

Then locate the following line and edit it according to your requirement.
<p>Add your affiliate <a href="#55">disclosure here.</a></p>

Hope that’s help.

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