How to add CSS class to first featured article on first page

Everything to do with Joomla! 2.5 templates and templating.

Moderator: 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
nesomis
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Mar 12, 2009 7:07 pm

How to add CSS class to first featured article on first page

Post by nesomis » Thu Sep 10, 2015 7:20 pm

Hi to all!

I need to add custom css class to the first featured article only on the first page.

I tried to add class suffix to the Home page and write CSS rule but it is applied to every first article on each page.

Have You some suggestions for me?

Thanks.

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19180
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: How to add CSS class to first featured article on first

Post by ranwilli » Thu Sep 10, 2015 7:44 pm

Sorry, I had given an answer which was for a later version of Joomla!
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19180
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: How to add CSS class to first featured article on first

Post by ranwilli » Thu Sep 10, 2015 8:04 pm

See:
https://docs.joomla.org/Using_the_Page_ ... plate_Code

be sure to look at the Version info carefully
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

User avatar
nesomis
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Mar 12, 2009 7:07 pm

Re: How to add CSS class to first featured article on first

Post by nesomis » Thu Sep 10, 2015 8:21 pm

Thanks.


Locked

Return to “Templates for Joomla! 2.5”