Minimum: How to turn off title text without moving nav menu?

Community Forums Forums Design Tips and Tricks Minimum: How to turn off title text without moving nav menu?

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  zachho 1 year, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22369

    zachho
    Participant
    Post count: 4

    I’ve uploaded the header image and turned off the “Show Header Text with your image” setting in “Appearance–>Header“. The title text was removed, but at the same time, the nav menu was moved below the header image. What can I do if the only thing I want is to remove the title text?

    #22374

    braddalton
    Participant
    Post count: 10203

    Can you link to your site please.

    This moves the Primary nav menu from after your header to before your header,
    [php]
    // Reposition the primary navigation menu
    remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
    add_action( ‘genesis_before_header’, ‘genesis_do_nav’ );

    // Reposition the secondary navigation menu
    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
    add_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );
    [/php]

    This moves the secondary nav menu from after your header to before your header

    ref: http://www.briangardner.com/code/reposition-navigation/

    Paste the appropriate code at the end of your child themes functions.php file.


    #22382

    zachho
    Participant
    Post count: 4

    Thank you for the reply, Brad!
    I find the code still doesn’t work, though I’ve added to the function.php.
    Since I’m now testing the site locally, so here’re some screenshots:

    1. code add to function.php

    http://i.imgur.com/XJ3vMGM.png

    2. custom menu widget

    http://i.imgur.com/kAt0xKw.png

    3. “Show Header text with your image” turn on

    http://i.imgur.com/DoIcGmU.png

    4. “Show Header text with your image” turn off

    http://i.imgur.com/lRAzlzy.png

    #22386

    braddalton
    Participant
    Post count: 10203

    Should work because the code comes from the Developers site.

    Do you have any other code on the file which may conflict? Can’t see the top of the functions.php file.

    What theme are you using?

    You could add something like this to your child themes style.css file:
    [css]
    #title a, #title a:hover {
    display: none;
    }
    [/css]

    I added this in Firebug as a new rule and it works but not sure which theme you’re using so i used the Corporate theme.


    #22389

    zachho
    Participant
    Post count: 4

    I’m using the Minimun theme,

    The CSS code works!

    But applying display: none will make the title un-clickable.

    Meanwhile, I test another css code and it perfectly as well:

    I think the genesis code doesn’t work because the menu is within the header div.


    h1 {
    text-indent: -9999px;
    }

    Thank you for the help, Brad!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.