Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1002850

    I was wondering where I can insert the google adsense code onto my enfold theme? I have read several threads here but (and I realize this must sound basic) but I do not understand where to place the code snippet from google. Can someone help with this? I do not have any experience with php or wordpress development outside of using the Enfold theme so maybe that is part of the issue :|

    From reading the other threads here I would like to insert ads using short codes to have more control over exactly where ads are placed, can I simply add a short code to a text block in a widget or on any page? Any advice is greatly appreciated.

    Thanks,

    Chris

    #1002887

    Hey kpcradix,

    You can use shortcodes within text blocks on any page where it resides.

    Best regards,
    Jordan Shannon

    #1003020

    OK but where do I put the code snippet from google adsense? Doesn’t that have to go in the head section of the page? and how do I access that through wordpress?

    #1003151

    Hi,

    What is the code snippet and where are adsense telling you to place it?

    Best regards,
    Rikard

    #1003155
    This reply has been marked as private.
    #1003364

    Hi,

    Thanks for that, please try this in your functions.php file:

    function kpcradix_add_adsense_code(){
    ?>
    !THE ADSENSE CODE GOES HERE!
    <?php
    }
    add_action('wp_head', 'kpcradix_add_adsense_code');

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.