News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Insert image before the link in navbar

Started by Allach, May 20, 2025, 05:28:36 PM

Previous topic - Next topic

Sir Osis of Liver

#20
Did you try the code in my previous post?  Have you disabled minified css?

The icon displays correctly at https://nova-arcade.com/, you just have to add a space before title to position it a little further left -


'nova-villa' => array(
    'title' => ' Nova-Villa',
    'href' => 'https://nova-villa.de',
    'show' => true,
    'sub_buttons' => array(
    ),
),


When in Emor, do as the Snamors.
                              - D. Lister

Allach

I tried everything and nothing helped.


Sir Osis of Liver

#22
Vertical alignment is correct.  If you've added a space in 'title' and it doesn't work, try this -


    'title' => '&nbspNova-Villa',


Or you can try this -


.main_icons.nova-villa {
    display: inline-block;
    margin-right: 5px;
}

When in Emor, do as the Snamors.
                              - D. Lister

Allach


HITG

Quote from: Allach on May 20, 2025, 05:28:36 PMI've added a new link that leads to my other website. I want to insert an image in front of it.How do I do that?

How can I do this too like add links change links.

Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: