Viewing 3 replies - 1 through 3 (of 3 total)
  • You can evaluate some ads sense plugins here: https://www.quickonlinetips.com/archives/2006/11/10-best-wordpress-plugins-for-google-adsense/, and see whether one in particular has option to only display the ads in home page only.

    From the programming standpoint, it should be easy, just adds a checking if (is_home()) to ascertain whether it is in home or not. And if it is, then display the ads (widget or short code)

    But if you don’t want to touch source code, my suggestion is evaluating some ready-to-use plugins and see whether it has option to display only in home page.

    You can evaluate some ads sense plugins here: https://www.quickonlinetips.com/archives/2006/11/10-best-wordpress-plugins-for-google-adsense/, and see whether one in particular has option to only display the ads in home page only.

    From the programming standpoint, it should be easy, just adds a checking if (is_home()) to ascertain whether it is in home or not. And if it is, then display the ads (widget or short code)

    But if you don’t want to touch source code, my suggestion is evaluating some ready-to-use plugins and see whether it has option to display only in home page.

    Thread Starter mydaily-gadget

    (@mydaily-gadget)

    I found nothing that helps in the plugin list.

    I am not afraid to touch to code, but I am a bit inexperienced. I tried adding an if loop to a simple text widget but it doesn’t work.

    How can I add the If structure in order to show a widget if it’s on the homepage ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show Ad in sidebar only on the main page’ is closed to new replies.