WordPress.org

Ready to get started?Download WordPress

Forums

Menubar
Add image to left side of menu (3 posts)

  1. trihardertom
    Member
    Posted 1 year ago #

    Hi all,

    First ever question here! Might be obvious to any wp gurus out there!

    I want to add an image to the left of the menubar item. I assume this goes in the header, but when I use the below code, only the image is visible. Please help!

    <div id="hotmenu">
    <img src="http://trinitymonkey.we.bs/wp-content/uploads/2012/12/300-290x160.jpg" alt="testimage" height="50" width="160"; ?php do_action('wp_menubar','Hot'); ?>
    </div>

    Many thanks!

    http://wordpress.org/extend/plugins/menubar/

  2. trihardertom
    Member
    Posted 1 year ago #

    Ok, so realised I can just add an image as a menu entry using HTML, but this ALWAYS puts the entry on the far right regardless of where it's supposed to be in relation to other entries. Anyone come across this?

    Many thanks

  3. jamesinagiantpeach
    Member
    Posted 1 year ago #

    <div id="customnavigation">
    
    <div id="hotmenu">
    <?php do_action('wp_menubar','Hot'); ?>
    </div>
    
    <div id="tinitymonkey">
    <img src="http://trinitymonkey.we.bs/wp-content/uploads/2012/12/300-290x160.jpg" alt="testimage" height="50" width="160">
    </div>
    
    </div>

    I think something like that would work. Then use CSS to style the first div with float: right and the second with float:left

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic