How to set up rounded corners using JavaScript in Joomla Modules
Posted in CMS Development by Alex | Tags: javascript, joomla, modules, rounded cornersA very interesting fact about joomla is that you can’t have separate module styles all the time. You need to work your way with module class suffix. Well, how do you have the right sidebar modules with rounded corners whyle the left sidebar menu has a different style?
The answer is simple, with a little help of javascript. And here si how you can get it done.
First step is to include the code
Open up your template`s index.php file and paste this code before the end of the head tag.
After that include this js inside your template folder. (Right click -> “Save As”). Then navigate to your module and set up a suffix in the module like in the picture below.
Next step is to change within the pasted code we inserted earlyer the new class name of the module. If the module class suffix is “_john” within the code we replace it like this:
And presto, you have instant rounded corners even in IE. NOTE that for a menu module the prefix for the menu class is “module“. So the code will be like “module_menuname“.
Other rounded corners resources for Joomla:
- Creating rounded corners in Joomla Modules
- CSS: border-radius and -moz-border-radius
- Joomla Class Suffix guide
The credits for the Javascript code go to CurvyCorners.
You may be interested in these also:
4 Comments to “How to set up rounded corners using JavaScript in Joomla Modules”
Post comment
Sponsors
Pages
Recent Posts
- 35+ free Icon sets for your next web development project
- Grunge web design tools, brushes and patterns
- Rushhour: WordPress Corporate business blog template
- Autor comment highlight in WordPress 2.8+
- How to create a peel ad in a WordPress blog
- How to make a author box in WordPress
- Best 5 wordpress hosting providers
- A free Photoshop WordPress theme
- 15+ Internet Explorer comics
- How to debug for IE6 with multiple IE instances
- 20+ deviant inspirational design layouts
- How to make your very own CAPTCHA
- 25+ incredible Photoshop makeover videos
- 10 best of the best Joomla themes
- How to set up a hotel reservation form in a WordPress page


dota says:
Nice! I would like to find something like this for Drupal CMS modules…
dota´s last blog ..Выбираем Акса через -random
cathy says:
Thank-you. Thank-you. Thank-you. I spent the majority of my day trying to get css/div rounded corners to work in joomla. I Think I tried everything. I hesitate to use js because I am not familiar at all. This was so simple. So Thank-you
Dota Allstars says:
Very nice work! Thank!
Blog Pendidikan Terdepan says:
i tried it for my joomla but not work well. help me please. I use Beez Template for Joomla. Check my website and guide me please