Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Remove ads for registered users with Atahualpa? (http://forum.bytesforall.com/showthread.php?t=20588)

Danielwerner Jul 4, 2013 01:18 AM

[SOLVED] Remove ads for registered users with Atahualpa?
 
Hi,

I want to remove my adsense ads (placed within widgets) for logged in users. I found this string which supposedly does this:

Code:

if (!is_user_logged_in()) {
// Insert Adsense (or whatever) code here
}

But with this, I have to go into the templates and add them myself. Is there some way to do it in the Atahualpa settings, so it's saved between updates of the theme? Or can I achieve this in some other way?

Thanks!

juggledad Jul 4, 2013 04:02 AM

all depends on where you added the ad's in the first place. If you added them in a widget, you could use the 'widget logic' plugin and add that code a the widget logic...

lmilesw Jul 4, 2013 09:26 AM

You could also use the Restrict Widgets plugin which doesn't require looking up the code. It has a choice to hide for logged in users. This is my current favorite plugin for controlling the display of widgets.

Danielwerner Jul 9, 2013 04:23 AM

Works great with the widget logic. Thanks for your help, didn't know about that plugin. :)


All times are GMT -6. The time now is 04:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.