Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding article-specific CSS in Joomla 3.1.1

Posted on 2013-05-23
3
Medium Priority
?
430 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 2000 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 51

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 51

Author Closing Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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) …
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses

876 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