Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Adding article-specific CSS in Joomla 3.1.1

Posted on 2013-05-23
3
422 Views
Last Modified: 2013-06-15
I am new to Joomla, and have created my first template.  It is responding appropriately.  Right now, there is only a home page.  There will eventually be more content, and each page is likely to need its own styling.  I'd rather not dump all the page-specific CSS into the main template.css file.  How can I tell Joomla to link to CSS file "thispage.css" from a particular article?

I need to know if this is possible with a default installation.
0
Comment
Question by:Steve Bink
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
dec0mpile earned 500 total points
ID: 39230251
I think this would be possible with the default installation, but it would require changing or adding some code.

Take a look at this free extension:
http://extensions.joomla.org/extensions/style-a-design/templating/14053

It is compatible with Joomla 3.x.x

Website with documentation:
http://www.hyde-design.co.uk/free-joomla-extensions/custom-css#all-templates

I think it will do exactly what you need.
0
 
LVL 50

Author Comment

by:Steve Bink
ID: 39231863
This does what I want, but I would certainly prefer to have the CSS attach directly to the article, instead of having to split the management between the article and a module.  I'm guessing there is no functionality inside Joomla core to handle this?

I don't like the administration this will require to manage a site with hundreds of pages, but it is what it is.

Any other suggestions?
0
 
LVL 50

Author Closing Comment

by:Steve Bink
ID: 39250560
It is not a perfect to what I want, but it works.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question