Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Remove ads for registered users with Atahualpa?

Old Jul 4, 2013, 01:18 AM
Danielwerner's Avatar
94 posts · Jul 2009

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

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?

Old Jul 4, 2013, 04:02 AM
juggledad's Avatar
23,743 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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...
Old Jul 4, 2013, 09:26 AM
lmilesw's Avatar
10,175 posts · Jul 2009
Central New York State USA
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.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Jul 9, 2013, 04:23 AM
Danielwerner's Avatar
94 posts · Jul 2009
Works great with the widget logic. Thanks for your help, didn't know about that plugin.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa users support each other? bpbaker Atahualpa 3 Wordpress theme 22 Sep 9, 2011 05:51 AM
If Atahualpa isn't capable of having child themes, can users still switch th MTPrower Header configuration & styling 14 May 28, 2011 10:54 PM
BUGFIX 353-02: Allow multi-site users to see the Atahualpa Theme Options juggledad New Versions, & Updating 0 Sep 3, 2010 08:18 AM

All times are GMT -6. The time now is 02:17 AM.

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