WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Alex Schenker
    Member
    Posted 10 months ago #

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

    http://wordpress.org/plugins/google-adsense-for-responsive-design-gard/

  2. Alex Schenker
    Member
    Posted 10 months 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
    Member
    Plugin Author

    Posted 9 months ago #

    Correct, and thank you for posting this for everyone!

Reply

You must log in to post.

About this Plugin

About this Topic