• 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

News Pro Navigation problem (shortcode created & works, but tabs issue)

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 › General Discussion › News Pro Navigation problem (shortcode created & works, but tabs issue)

This topic is: not resolved

Tagged: menu, navigation, News Pro, shortcode

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 7 months ago by malabarka.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 27, 2017 at 6:38 pm #211946
    malabarka
    Participant

    Issue with NEWS PRO theme similar to https://www.studiopress.community/topic/is-there-a-bug-in-news-pro-when-using-google-chrome/ where "move your mouse over the menu bars at the top and the "buttons" will go totally black obscuring the text"
    Created shortcode for nav menu

    /* Add Nav Menu In Content Area Using Shortcode
    https://wpsites.net/web-design/add-nav-menu-shortcode-in-content-area/ */

    add_shortcode( 'genesis_secondary_menu', 'wpsites_genesis_secondary_nav_menu_shortcode' );
    function wpsites_genesis_secondary_nav_menu_shortcode() {
    ob_start();
    wp_nav_menu( array( 'menu' => 'Secondary', 'menu_class' => 'genesis-nav-menu' ) );
    $menu_shortcode = ob_get_contents();
    ob_end_clean();
    return $menu_shortcode;
    }

    but anyway I test, adding css I still have the same issue: you move the mouse over the tabs and they are completely black because this css is not executing

    .genesis-nav-menu a:focus,
    .genesis-nav-menu a:hover,
    .genesis-nav-menu .current-menu-item > a {
    background-color: #000;
    color: #fff;
    }

    Note: this is default News Pro template. Design Pallete Pro is uploaded but not used in any part of the site

    September 28, 2017 at 7:10 am #211953
    Victor Font
    Moderator

    Please post a link to your site.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 28, 2017 at 9:53 pm #211983
    malabarka
    Participant
    This reply has been marked as private.
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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

© 2026 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