简体   繁体   中英

How to add custom CSS to an article in Joomla 1.5.20?

How to add custom CSS to an article in Joomla 1.5.20?

I have installed JUMI, but see no effect of it in article editor.

How to use it?

I have a bunch of CSS styles to apply.

As much as I would love to rant on about how you should upgrade to Joomla 2.5 or 3.2, I won't but please at least upgrade to Joomla 1.5.26 which is the latest version of the 1.5 series.

To add custom CSS to your article, simply download and install a plugin called Sourcerer . This plugin allows you to add custom code to any article. Once installed, open your article in the Article Manager and you can use the following for custom CSS:

{source}
<style>
    #element {
         //code goes here
    }   
</style>
{/source}

This extensions can also be used for Javascript/jQuery and PHP. I have used this extension on multiple website and it simply just does the job.

Hope this helps

Back when I used joomla 1.5, which has hit end of life and is recommended to upgrade to joomla 2,5 or higher. I used Flexi Custom Code. I would also create a module position in the head of my template that would allow me to stick the custom code into.

If Jumi Works like flexi did, then you just have to add aa pair of tags around your css and publish it to a specific position.

[EDIT] When You add the CSS you add the Css code you create a new module, and publish the module to a position in the template that is being displayed. [/EDIT]

That is How I used to do it.

Hope that helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM