Google AdSense for Responsive Design - GARD
[resolved] How to insert into template file? (3 posts)

  1. Alex Schenker
    Posted 2 years ago #

    The shortcode works for embedding in posts, but what code do we use to add GARD to a template file (ie. header.php)?


  2. Alex Schenker
    Posted 1 year ago #

    Got my answer in the GARD forums:

    <?php echo do_shortcode("[gard group='1']"); ?>

    for GARD Pro (sub in your group #), so I'm guessing this would work for the regular GARD tag:

    <?php echo do_shortcode("[gard]"); ?>

  3. The Plugin Factory
    Plugin Author

    Posted 1 year ago #

    Correct, and thank you for posting this for everyone!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google AdSense for Responsive Design - GARD
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic