info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
What is the menu item you're trying to put?
are you talking about where the icon is located? if so its 'priority' => 600, the number 600 can be changed to whatever to change the placement in the menu.
Hi Costa, trying to pass on the torch here :)))))).
a custom one:
elgg_register_menu_item('topbar', array(
'name' => 'elgg_shop',
'href' => 'shop.domain.com',
'title' => 'elgg_shop',
'text' => elgg_view_icon('menuShop'),
)
);
.elgg-icon-menuShop{
background: transparent url('images/shop_simple.png') no-repeat left;
}
It gets added to the front, i want it on the end..
thanks costa!
that did the trick!
however, what (else) do i need to do to get the correct image showing?
the arrow is not what im pointing to in the css.. it must be a default one.
$text = '<span class="elgg-icon elgg-icon-menuShop"></span>';
'text' => $text,
try that.
didnt help.
stayed with the default arrow.
if i do
$text = '<span class="elgg-icon-menuShop"></span>';
item disappears.
my css url images/.... is relative to the start.php
and i tried using an absolute too.
this is all in my theme
does the image have to be a default size?
where is it getting the default arrow from?
it is inheriting the arrow from _graphics/elgg_sprites
Short of using my own, how can i change which sprite it is defaulting to?
http://community.elgg.org/discussion/view/1188406/sprites
- Previous
- 1
- 2
- 3
- Next
You must log in to post replies.