Support » Theme: .TUBE » is there a way to insert an ad That’s Run Of Site In Header?

  • I have tried everything. Below masthead on home page, i wanted to input an ad that would know to also show inside posts as well. The only way it seems it can be done is adding one to index, and adding one to singles.php, but i dont want to input same ad code twice. i simply was hoping there was a place to drop code that would be run of site and show on home page as well as inside posts as well where my ad shows now, thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • There is no need to edit the templates to do this.

    Instead, put something like this in your functions.php…

    add_action( 'tube_after_masthead', 'my_run_of_site_top_ad' );
    
    function my_run_of_site_top_ad(){
    
      ?>
      Your Ad Code Here
      <?php
    
    }
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.