1. bibbp
  2. Sherlock Holmes
  3. Commercial Templates
  4. Tuesday, 24 January 2017
  5.  Subscribe via email
Hi Ciaran,

My client wants to have a little green roof (!) appear over the selected menu item when it has been selected and the page is active. I have looked at the littlesnippets.net site, and snippet #1168 (on page 6 of the menu section) is the nearest, but instead of the line above the text I need to put the roof. Any idea how I can do that. It does not need to fade in/out.
An alternative might be to have a little background image behind the selected menu item...

Any ideas? Preferably to work with Valencia template but that is not critical.

Thanks

Peter
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Peter

In what format is your 'roof'? If it is an image may I suggesting posting a URL directly to the image and I will reply with the needed CSS to load it.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Here is my roof! It should appear over the Page 1, 2 or 3 when active (don't bother about hover).

Below is the url for the site, and the url for the roof is /images/scotts/webstuff/Roof.png .

Thank you!
Attachments (1)
References
  1. https://supportedliving.scottsproject.org.uk/
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To amend try adding the following to the Custom CSS field of your templates parameters where 752 is your menu item ID (repeat for each menu item)..

.hornav .item-752::before {
content: url("https://supportedliving.scottsproject.org.uk/images/scotts/webstuff/Roof.png");
left: 10px;
position: absolute;
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for the guidance Ciaran, For the benefit of others I go it working as desired with the following code:

.item-nnn.active {
background-image: url("https://site.com/images/image.png";);
background-repeat: no-repeat;
background-position: 15px 0px;
}
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Excellent.. thank you for the update! :)

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok