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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Top-level image
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Top-level image
#31613
Top-level image 12 Years, 2 Months ago Karma: 0
Hi,

I'm trying to do a horizontal menu were the top-level (parent) menu item consist soley of an image (i.e. no text). The sub-menu items should be as they are by default (i.e. text link only).

How can I do this?
The administrator has disabled public write access.
 
#31620
Re:Top-level image 12 Years, 2 Months ago Karma: 760
Hello,

It is necessary to use custom CSS rules. It will look like:

UL.ux-menu LI.ux-menu-itemITEMID>A
{
text-indent: -999em;
background-image: url(LINK_TO_IMAGE);
background-repeat: no-repeat;
background-position: center center;
}

Where ITEMID is menu item ID, it can be found in Joomla! menu manager. LINK_TO_IMAGE is a link to menu item image.

For example if you want to show <joomla_directory>/images/menu1.jpg image for menu item with ID = 35, use the following CSS rule:

UL.ux-menu LI.ux-menu-item35>A
{
text-indent: -999em;
background-image: url(images/menu1.jpg);
background-repeat: no-repeat;
background-position: center center;
}

Custom CSS rules can be placed in "CSS Styles" parameter in module settings.

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