Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Setting Custom Images for the Background of Items
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Setting Custom Images for the Background of Items
#25791
Setting Custom Images for the Background of Items 12 Years, 8 Months ago Karma: 0
I have just recently started using Joomla for a site I am trying to build. I am using the YouGrids template for my site, and I have slightly modified it on my own. I just downloaded this extension to use for the menus of my page and I love it so far.

However, the thing that I am having trouble with is changing the colors of individual menu items as they appear on the menu module.

For example:
I have three menu items that are being displayed in the ARI Ext Menu extension, named: Home, Article 2, and Article 3 (They are just test items so I can figure everything out.) And I want them to be colored orange, red, and blue respectively. I have searched through the forums and have been unable to find anything that can help me solve this problem. And any help would be appreciated.

Eventually I would like to use different background images entirely for each menu item. I have images that I have created of what I want the tabs of my website to look like that I would like to use for the background of each respective menu item. If this is a different issue then I would like to know how to do this also, but if I can change this similarly to changing the color, then I am sure I can figure it out if I am told how to change the color.

Thanks in advance.
Tyler
The administrator has disabled public write access.
 
#25797
Re:Setting Custom Images for the Background of Items 12 Years, 8 Months ago Karma: 760
Hello,

Each menu items has a CSS class based on menu item ID. For example if you want to change background for menu item with ID = 10, use the next CSS rule:

Code:


.ux-menu LI.ux-menu-item10>A
{
  background: red none !important;
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#25802
Re:Setting Custom Images for the Background of Items 12 Years, 8 Months ago Karma: 0
So if I wanted to make it an image for the background would I just do something like this:


Code:

.ux-menu LI.ux-menu-item10>A
{
background:url(images/menu-item-bg-477.png);
}

And does the code you gave just go into the CSS Styles box in the Module Editing page?

Thanks a lot!
The administrator has disabled public write access.
 
#25805
Re:Setting Custom Images for the Background of Items 12 Years, 8 Months ago Karma: 760
It is possible to add custom CSS rules to "CSS Styles" parameter in module settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#25809
Re:Setting Custom Images for the Background of Items 12 Years, 8 Months ago Karma: 0
Thank you!

I got the different colors to work but I am still struggling with getting background images to work. This is the code I tried:

ul.ux-menu li.ux-menu-item477>a, a:focus, a:active {
background-image:url('images/OrangeTab.jpg');
height: 30px; width: 100px;
}

I saved the image to mod_ariextmenu>js>css>images>OrangeTab.jpg and then rezipped the file and reuploaded it. This didn't change the background image at all.

How should I go about this differently

Thanks in Advance
Tyler
The administrator has disabled public write access.
 
#25813
Re:Setting Custom Images for the Background of Items 12 Years, 8 Months ago Karma: 760
Save the image to <joomla_directory>/images/ folder.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1