[Support request] Adsense Codes By Shortcode

Home Forums Support [Support request] Adsense Codes By Shortcode

Home Forums Support Adsense Codes By Shortcode

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #766906
    Sibi Paul

    Hello,

    I wish to Add Adsense code in a Hook.

    and Can I generate a Shortcode for that Hook ?

    and, Ads Will Start Showing where ever I added that Short code manually…

    For Ex:

    Currently, I am using Adinserter Plugin…

    That Plugin Actualy gives me a Shortcode for the Ad Codes…

    something like { ads-shortcode-1 }

    where I added this code, Ads showing there…

    if the same function available in GP hook, then its better to Uninstall a Plugin… and keep my site more lite…

    #766932
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not sure if you can create shortcode for Adsense. You will need to check with Google for that.

    Plugin solution is likely the way to go. Code is code – doesn’t matter if they are added as functions or plugins, they are still code.

    #766934
    Sibi Paul

    I don’t know, That’s Why I am here…

    if You Could Teach me, It will be Great…

    #766937
    Leo
    Staff
    Customer Support

    I modified the answer above: https://generatepress.com/forums/topic/adsense-codes-by-shortcode/#post-766932

    Keep in mind that this forum is for GeneratePress questions, not general WordPress help.

    Thanks!

    #766941
    Sibi Paul

    I am Asking You a Simple Question…

    Elements – Hook

    I added a Script in the Hook

    and Marked Short Code…

    But Shortcode is not Showing.

    I want to Have short code, Then I will enter the shortcode manually some where I need to display the script.

    is this Possible or NOT…

    Without Any Thrid Party Plugin…

    #766947
    Leo
    Staff
    Customer Support

    If you are using Google Adsense, I believe their instruction is to add the script in wp_head hook and there aren’t any shortcodes for it.

    #766962
    Sibi Paul

    what is the function then – check in shortcode box ?

    #767201
    Leo
    Staff
    Customer Support

    Are you referring to Execute Shortcode? If so that’s to run the shortcode when you have shortcode added as the hooks element content.

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