• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Using an Image for the last Item in Nav Bar

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Using an Image for the last Item in Nav Bar

This topic is: not resolved

Tagged: genesis, NAV bar, sample, themes

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 3 months ago by blogjunkie.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 25, 2014 at 5:30 am #92284
    Tom88
    Member

    Hi All,

    I am trying to figure out how to add an image in the Nav Bar for the last item in the Nav Bar. Basically I have a promotion page, and in the Nav Bar instead of saying Promo Page, I would like to display a promo icon image in its place? Any help would greatly be appreciated.

    Wordpress v3.8.1, Genesis Sample Theme v2.0.1, Genesis Framework v2.0.2

    Thank you,

    February 25, 2014 at 6:10 am #92288
    blogjunkie
    Participant

    Hi Tom, you'll need to edit your CSS for this. I'll leave you to Google for details, but here's the general steps:

    .nav-primary li:last-child a {
    /* Display the image as a background */
    background: url('http://yoursite.com/path/to/icon.png') no-repeat 0 0;
    padding-left: 40px; /* adjust this to prevent your text overlapping the icon */
    /* the following 3 lines will hide the text completely */
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    }

    Replace .nav-primary with .nav-secondary if you want the icon to go on the secondary nav. Remove the last 3 lines of code if you don't want your text hidden.

    Further reading:

    background property - http://css-tricks.com/almanac/properties/b/background/

    Good luck!


    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

    February 25, 2014 at 6:21 am #92289
    Tom88
    Member

    Thank you for your response, is there a way to float an image to the right of the Primary Navigation Bar, and I will create a link for the image, since I already have too many links on my nav bar, and it is wrapping to the next line. I would like to float the image to the right of the Navigation bar. I cannot use absolute positioning since this is a responsive website. Any Thoughts?

    February 25, 2014 at 6:58 am #92292
    blogjunkie
    Participant

    Hi Tom, if it's a responsive site you should definitely include the image as a link in the nav bar, not floated outside. This is the way that Genesis does it to for the navigation extras (date, twitter, search bar).


    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble