Content plugin not appear on Frontpage?

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

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.
Locked
User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Content plugin not appear on Frontpage?

Post by JSYMedia » Thu Apr 05, 2012 9:23 pm

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.

User avatar
sone12
Joomla! Champion
Joomla! Champion
Posts: 5446
Joined: Wed Oct 11, 2006 1:12 pm
Location: Kristiansand, Norway
Contact:

Re: Content plugin not appear on Frontpage?

Post by sone12 » Thu Apr 05, 2012 10:00 pm

I will guess that you can just hide it from the frontpage with use of css. " display:none" ;)
Kristian P. Granrud

User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Re: Content plugin not appear on Frontpage?

Post by JSYMedia » Thu Apr 05, 2012 11:17 pm

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.

User avatar
sone12
Joomla! Champion
Joomla! Champion
Posts: 5446
Joined: Wed Oct 11, 2006 1:12 pm
Location: Kristiansand, Norway
Contact:

Re: Content plugin not appear on Frontpage?

Post by sone12 » Fri Apr 06, 2012 9:07 am

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: Select all

<div class="blog-featured">
So if you puts the ads inside a div you can choose to hide it on the frontpage.

Code: Select all

.blog-featured .ads{display:none;}
Kristian P. Granrud

User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Re: Content plugin not appear on Frontpage?

Post by JSYMedia » Fri Apr 06, 2012 6:17 pm

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: Select all

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: Select all

_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.

User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Re: Content plugin not appear on Frontpage?

Post by JSYMedia » Thu Apr 12, 2012 1:12 am

Anyone???
Tampa Joomla web design at http://JSYMedia.com.

User avatar
sone12
Joomla! Champion
Joomla! Champion
Posts: 5446
Joined: Wed Oct 11, 2006 1:12 pm
Location: Kristiansand, Norway
Contact:

Re: Content plugin not appear on Frontpage?

Post by sone12 » Thu Apr 12, 2012 5:23 am

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

User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Re: Content plugin not appear on Frontpage?

Post by JSYMedia » Thu Apr 12, 2012 5:37 am

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.

User avatar
sone12
Joomla! Champion
Joomla! Champion
Posts: 5446
Joined: Wed Oct 11, 2006 1:12 pm
Location: Kristiansand, Norway
Contact:

Re: Content plugin not appear on Frontpage?

Post by sone12 » Thu Apr 12, 2012 6:36 am

This will probably not work...the name is bad...its a space above the _

Code: Select all

.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: Select all

.blog-wrapper iframe{display:none!important;} 
Kristian P. Granrud

User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Re: Content plugin not appear on Frontpage?

Post by JSYMedia » Thu Apr 12, 2012 9:04 pm

After much trial and error, I finally figured it out.

Install this plugin: http://extensions.joomla.org/extensions ... -ads/16027

Configure the plugin using the "Content top ads" by inserting your full Google ad code. Then add

Code: Select all

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.


Locked

Return to “Extensions for Joomla! 2.5”