-
AuthorPosts
-
pixelzombie Friend
pixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
January 10, 2011 at 11:22 pm #158578Didn’t you guys wonder how JoomlArt displays the nice “new” and “hot” and “numbers of templates in this category”? Well, I looked at the css and it is quite simple and here’s how:
Add these lines to your mega.css file located in templates/your-templates-folder/css/menu
/* TAGS */.ja-megamenu ul.level0 li.mega span.menu-desc, .ja-megamenu ul.level1 li.mega span.menu-desc {
display: none;
}
.ja-megamenu .parent-tags a.parent-tags, .ja-megamenu .tags a.tags {
position: relative;
}
.ja-megamenu ul.level0 .parent-tags a.parent-tags span.menu-title {
padding-right: 50px !important;
}
.ja-megamenu .parent-tags a.parent-tags span.menu-desc, .ja-megamenu .tags a.tags span.menu-desc {
background: #696F72;
border-radius: 8px 8px 8px 8px;
color: #FFFFFF;
display: block !important;
font-size: 10px !important;
font-weight: bold !important;
line-height: normal !important;
padding: 2px 7px !important;
position: absolute;
text-shadow: none;
text-transform: none !important;
}
.ja-megamenu ul.level0 .parent-tags a.parent-tags span.menu-desc {
right: 12px;
top: 12px;
}
.ja-megamenu ul.level1 .tags a.tags span.menu-desc {
right: 10px;
top: 7px;
}
.ja-megamenu .parent-tags a.tags-green span.menu-desc, .ja-megamenu .tags a.tags-green span.menu-desc {
background: #6B9E1B;
}
.ja-megamenu .parent-tags a.tags-green-hover:hover span.menu-desc, .ja-megamenu .tags a.tags-green-hover:hover span.menu-desc {
background: #6B9E1B;
}
.ja-megamenu .parent-tags a.tags-red span.menu-desc, .ja-megamenu .tags a.tags-red span.menu-desc {
background: #EE372A;
}
.ja-megamenu .parent-tags a.tags-red-hover:hover span.menu-desc, .ja-megamenu .tags a.tags-red-hover:hover span.menu-desc {
background: #EE372A;
}
.ja-megamenu .parent-tags a.tags-blue span.menu-desc, .ja-megamenu .tags a.tags-blue span.menu-desc {
background: #29739D;
}
.ja-megamenu .parent-tags a.tags-blue-hover:hover span.menu-desc, .ja-megamenu .tags a.tags-blue-hover:hover span.menu-desc {
background: #29739D;
}
After that you have to add a description of that menu item. Of course you can write anything you like. Hot, new, awesome, 789, anything goes, just watch out for the length ;). I addition you need to add two additional classes to your menu item.
For main-level menu items add parent-tags and tags-color like shown below. Replace “color” with the color class. I described the color classes below the screens.
For sub-level menu items add tags and tags-color like this:
For now there are three color classes: tags-red, tags-green and tags-blue. You can add as many as you like and style them as you wish. You only need to add as many of these lines and change the css styles. For example a purple tag:
.ja-megamenu .parent-tags a.tags-purple span.menu-desc, .ja-megamenu .tags a.tags-purple span.menu-desc {
background: #800080;
}
.ja-megamenu .parent-tags a.tags-purple-hover:hover span.menu-desc, .ja-megamenu .tags a.tags-purple-hover:hover span.menu-desc {
background: #800080;
}
That’s it!
Depending on your menu style and height you have to focus on these lines because the position of the tags is relative to the menu item:
.ja-megamenu ul.level0 .parent-tags a.parent-tags span.menu-desc {
right: 12px;
top: 12px;
}
.ja-megamenu ul.level1 .tags a.tags span.menu-desc {
right: 10px;
top: 7px;
}
I hope the tutorial didn’t get to confusing and you will have “75+” “hot” menu-descriptions :D:D
4 users say Thank You to pixelzombie for this useful post
robert vining Friendrobert vining
- Join date:
- November 2006
- Posts:
- 33
- Downloads:
- 35
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 15 times in 7 posts
January 10, 2011 at 11:41 pm #371220Very nice job on this tutorial! Thanks for sharing it here with the JA Community!
Robert Vining
www.joompro.comstator86 Friendstator86
- Join date:
- September 2011
- Posts:
- 77
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 17
- Thanked:
- 1 times in 1 posts
December 25, 2011 at 1:01 am #431111Thanks for Superb Guide.
Let me make a Slight modification for RTL Languages:
/* TAGS Arabic*/
.ja-megamenu ul.level0 li.mega span.menu-desc, .ja-megamenu ul.level1 li.mega span.menu-desc {
display: none;
}
.ja-megamenu .ar-parent-tags a.ar-parent-tags, .ja-megamenu .ar-tags a.ar-tags {
position: relative;
}
.ja-megamenu ul.level0 .ar-parent-tags a.ar-parent-tags span.menu-title {
padding-left: 50px !important;
}
.ja-megamenu .ar-parent-tags a.ar-parent-tags span.menu-desc, .ja-megamenu .ar-tags a.ar-tags span.menu-desc {
background: #696F72;
border-radius: 8px 8px 8px 8px;
color: #FFFFFF;
display: block !important;
font-size: 10px !important;
font-weight: bold !important;
line-height: normal !important;
padding: 2px 7px 2px 7px !important;
position: absolute;
text-shadow: none;
text-transform: none !important;
}
.ja-megamenu ul.level0 .ar-parent-tags a.ar-parent-tags span.menu-desc {
left: 12px;
top: 12px;
}
.ja-megamenu ul.level1 .ar-tags a.ar-tags span.menu-desc {
left: 10px;
top: 7px;
}
.ja-megamenu .ar-parent-tags a.ar-tags-green span.menu-desc, .ja-megamenu .ar-tags a.ar-tags-green span.menu-desc {
background: #6B9E1B;
}
.ja-megamenu .ar-parent-tags a.ar-tags-green-hover:hover span.menu-desc, .ja-megamenu .ar-tags a.ar-tags-green-hover:hover span.menu-desc {
background: #6B9E1B;
}
.ja-megamenu .ar-parent-tags a.ar-tags-red span.menu-desc, .ja-megamenu .ar-tags a.ar-tags-red span.menu-desc {
background: #EE372A;
}
.ja-megamenu .ar-parent-tags a.ar-tags-red-hover:hover span.menu-desc, .ja-megamenu .ar-tags a.ar-tags-red-hover:hover span.menu-desc {
background: #EE372A;
}
.ja-megamenu .ar-parent-tags a.ar-tags-blue span.menu-desc, .ja-megamenu .ar-tags a.ar-tags-blue span.menu-desc {
background: #29739D;
}
.ja-megamenu .ar-parent-tags a.ar-tags-blue-hover:hover span.menu-desc, .ja-megamenu .ar-tags a.ar-tags-blue-hover:hover span.menu-desc {
background: #29739D;
}Additional class:
For Main Menu item: ar-parent-tags ar-tags–YOURCOLOR
For Child Menu item: ar-tags ar-tags-YOURCOLORThis Customization will help in multi-lingual sites. -
AuthorPosts
This topic contains 4 replies, has 4 voices, and was last updated by nayan007 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum