WordPress.org

Ready to get started?Download WordPress

Forums

Vantage
[resolved] Is it possible to add image to Home menu name? (4 posts)

  1. jankari
    Member
    Posted 7 months ago #

    Hello,
    In the Home page where the default menu name is "Home", can I add an image instead of the text? I know it cannot be done directly through the Page Builder, but I am wondering if it can be done through code change in mastheader.php.
    Thoughts?
    Thank you in advance for your time and effort in replying.

  2. jankari
    Member
    Posted 7 months ago #

    Hi Greg,
    Do you have any thoughts on whether this can be done?
    I am going to try adding an IF condition in the loop that builds the menu items to look for Home menu item and add img tag instead.
    Do you think this is the right approach?
    Thank you

  3. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    Using CSS would likely be easier - or see if this plugin will work -

    http://wordpress.org/plugins/nav-menu-images/

  4. jankari
    Member
    Posted 7 months ago #

    Thanks WPyogi. The plugin worked like a charm! I don't know why I did not think of looking for a plugin. Although I am leary of having too many plugins, for any potential degradation in performance. So far, it has been fine.
    Thank you again!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.