Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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,765 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,176 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 12:09 PM.

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