The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Thu Apr 05, 2012 9:23 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
Is it possible to insert a plugin (or module?) into an article and not have that plugin display on the front page?

When I display my 5 most recent articles on the front page in a blog layout, the Adsense plugin is displaying the 5 Google ads inserted within each article.

I'm aware I can insert the plugin code below the Readmore but I want the ad to be right-aligned at the beginning of each article.

I've seen this done on Wordpress blogs but can't seem to figure out how to do it within Joomla.

I have been using this plugin:

http://extensions.joomla.org/extensions ... e-ads/5022

_________________
Tampa Joomla web design at http://JSYMedia.com.


Top
 Profile  
 
PostPosted: Thu Apr 05, 2012 10:00 pm 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Wed Oct 11, 2006 1:12 pm
Posts: 5264
Location: Kristiansand, Norway
I will guess that you can just hide it from the frontpage with use of css. " display:none" ;)

_________________
Kristian P. Granrud - Global Moderator

Joomla! i Norge => http://www.joomlainorge.no • Twitter => @sone12twitt


Top
 Profile  
 
PostPosted: Thu Apr 05, 2012 11:17 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
Thanks for the reply.

Uhm....., any idea where that css would be added? ???

There isn't a front page css file, is there? Just not sure how to implement that. Using Joomla 2.5.4.

_________________
Tampa Joomla web design at http://JSYMedia.com.


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 9:07 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Wed Oct 11, 2006 1:12 pm
Posts: 5264
Location: Kristiansand, Norway
Is your frontpage a featured page? If so, take a look at the source code and see the difference between that and the full article page.

E.g in a featured view the content can be wrapped inside a div named "blog-featured". Ofcouse it also can be something else, if your template got overrides.
Code:
<div class="blog-featured">
So if you puts the ads inside a div you can choose to hide it on the frontpage.
Code:
.blog-featured .ads{display:none;}

_________________
Kristian P. Granrud - Global Moderator

Joomla! i Norge => http://www.joomlainorge.no • Twitter => @sone12twitt


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 6:17 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
Yes, all articles being displayed on the frontpage are featured.

http://mylifeneeds.com

The page code on my frontpage indicates this div class already exists that encompasses all featured frontpage articles:

Code:
rt-blog _frontpage


I am using the plugin 'Modules Anywhere' to insert the 'Phoca Google Adsense Easy' module into articles. Within the 'Phoca Google Adsense Easy' module there is a css field for custom css. Is there any way to insert some code there to stop display on the 'rt-blog _frontpage' div? I don't think so but thought I would ask. I've given the 'Phoca Google Adsense Easy' a Module Class Suffix of:

Code:
_phoca-adsense


I've tried inserting css code into the Gantry css (where it seems to need to go) without any luck. Just not sure where and what css to insert where. Sorry for the cluelessness. :-[

_________________
Tampa Joomla web design at http://JSYMedia.com.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 1:12 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
Anyone???

_________________
Tampa Joomla web design at http://JSYMedia.com.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 5:23 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Wed Oct 11, 2006 1:12 pm
Posts: 5264
Location: Kristiansand, Norway
I have looked at your site. I dont see any ads that are included in the articles at all? All ads I see is in a moduleposition below the Mailing List module.

_________________
Kristian P. Granrud - Global Moderator

Joomla! i Norge => http://www.joomlainorge.no • Twitter => @sone12twitt


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 5:37 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
I've been trying so many things and didn't have the plugin inserted. I now have it on the Earl Nightengale article located on the front page. Thank you for your help, Kristian.

_________________
Tampa Joomla web design at http://JSYMedia.com.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 6:36 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Wed Oct 11, 2006 1:12 pm
Posts: 5264
Location: Kristiansand, Norway
This will probably not work...the name is bad...its a space above the _
Code:
.rt-blog _frontpage iframe{display:none!important;}

Btw...If the name had been correct I guess it would work. E.g this code will work as I can see, but that will probably have effect on every page with blog layout.
Code:
.blog-wrapper iframe{display:none!important;}

_________________
Kristian P. Granrud - Global Moderator

Joomla! i Norge => http://www.joomlainorge.no • Twitter => @sone12twitt


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 9:04 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
After much trial and error, I finally figured it out.

Install this plugin: http://extensions.joomla.org/extensions/ads-a-affiliates/affiliate-systems/google-ads/16027

Configure the plugin using the "Content top ads" by inserting your full Google ad code. Then add
Code:
float:right
to the "css for ''top content'' ads container" field.

This plugin only displays the ads on the article view page and therefore not on Joomla 2.5 Featured/front page view. Set it up once and it inserts the ad into all articles. Brilliant.

Thanks again for your help. :D

_________________
Tampa Joomla web design at http://JSYMedia.com.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 



Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group