put the code "google adsense"

Community Forums Forums General Discussion put the code "google adsense"

This topic is: not resolved

Tagged: 

This topic contains 31 replies, has 3 voices, and was last updated by  braddalton 1 year, 2 months ago.

Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • #32085

    braddalton
    Participant
    Post count: 8797

    Try this:

    Or grab the code from Github https://gist.github.com/5277191.git

    Align using CSS rules http://www.w3schools.com/tags/att_img_align.asp


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #32086

    braddalton
    Participant
    Post count: 8797

    Align using CSS http://www.w3schools.com/tags/att_img_align.asp

    Exclude Adsense from displaying in posts in one category

    https://gist.github.com/5277191.git“>https://gist.github.com/5277191.git

    https://gist.github.com/5277191


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #38031

    raunekk
    Participant
    Post count: 40

    Hi Brad

    Sorry for the late reply.

    I tried using the code you provided to prevent ads from showing in posts from one particular category.

    But unfortunately it still doesn’t seem to work!!

    Is it possible for you to reply on this?

    Thanks

    Raunek

    #38033

    braddalton
    Participant
    Post count: 8797

    Can you please link to the category archive on your site where you say it doesn’t work?

    All the code i write and provide on these forums is tested.

    You can easily change the conditional tags to suit your needs.

    Always happy to help!!


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #38035

    raunekk
    Participant
    Post count: 40

    Thanks a lot for the quick reply…

    I think there  is some confusion on my side.

    I am trying to restrict ads from showing in all the posts belonging to a particular category and not in the archive page.

    Is the code provided just for the same..?

    Sorry if I had been not clear in the first place.

    Thanks

    #38036

    raunekk
    Participant
    Post count: 40
    This reply has been marked as private.
    #38045

    braddalton
    Participant
    Post count: 8797

    Understand. Please link to the category archive. Thanks


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #38048

    raunekk
    Participant
    Post count: 40

    I am sorry if this sounds stupid, but how to link to the content archive. I think I am missing something here!

    Thanks in advance.

    #38051

    braddalton
    Participant
    Post count: 8797

    Just link to your site please.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #38053

    raunekk
    Participant
    Post count: 40

    I sent you a PM.

    Here’s is the website link http://www.marineinsight.com

     

    #38512

    raunekk
    Participant
    Post count: 40

    Anyone???

    #38520

    braddalton
    Participant
    Post count: 8797

    Which category do you want to exclude?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #38527

    raunekk
    Participant
    Post count: 40

    All the articles of this category:

     

    http://www.marineinsight.com/category/shipping-news/

     

    Thanks

    #38532

    braddalton
    Participant
    Post count: 8797

    I tested this code and it works.

    Make sure you add the correct category i.d.

    Copy from the view raw link and use a code editor like Notepad++.

    Code not displaying? Grab it on Github

    I suggest you install WordPress locally and test/modify PHP code if you plan on using custom functions.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #38540

    raunekk
    Participant
    Post count: 40

    Thanks a lot Brad!

    Will give it a try again and get back to you.

    Thanks

     

Viewing 15 posts - 16 through 30 (of 32 total)

You must be logged in to reply to this topic.