Headway Theme add_notice function for single post pages


/ Published in: PHP
Save to your folder(s)

When placed in the custom_functions.php file, this adds a notice after every post on the Single Post template only. Style the box with CSS.


Copy this code and paste it in your HTML
  1. function add_notice() {
  2. if is_single() { >?
  3. <p class="notice">< Want to know how to get greater results with your marketing? We have marketing training courses, marketing reviews and solutions to help you. <a href="http://www.m4bmarketing.com/online-marketing-courses-marketing-revi..."><strong>Learn More About Greater Results</strong></a></p>
  4. <?php }
  5. }
  6. add_action('headway_after_post', 'add_notice');

URL: rentageekmom.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.