How to insert a hr tag between #title and #nav ?

Community Forums Forums Design Tips and Tricks How to insert a hr tag between #title and #nav ?

This topic is: not resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  ericji 1 year, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #52953

    ericji
    Participant
    Post count: 2

    Hello everyone, :)

    I’m trying to make a child theme based on minimum and I want to put a <hr /> between the #title bloc and the #nav one (at least, between the description line and the primary menu)

    I made it between #header and #content with that code in my functions.php:

    /** Add the separator after header section */
    add_action( 'genesis_after_header', 'headerseparator' );
    function headerseparator() {
    	if ( is_home() ) {
    		echo '<hr class="sep" />';
     	}
    	elseif ( is_singular( array( 'post', 'page' ) )  ){
    		echo '<hr class="sep" />';
    	}
    }

    but I can’t see how to have the same betwen #title and #nav

    Any idea ? Thanks :)

    And sorry not to speak a good english… french inside ! :)

    http://lecynozophrenemural.fr
    #52972

    Anita
    Participant
    Post count: 7510

    I will send out a tweet to get you some assistance. In the meantime, I LOVE… ABSOLUTELY LOVE the image of the Dog on your website!


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #52974

    ericji
    Participant
    Post count: 2

    Oh ! the dog… :)

    Well, it’s a big painting on a wall in Paris by a french artist.

    Great work, for sure.

    éricji

    #53089

    ericji
    Participant
    Post count: 2

    OK, I find it out using this page to visualize the genesis section : http://genesistutorials.com/visual-hook-guide/

    So, the code is :

    /** Add the separator between title and description section */
    add_action( 'genesis_site_description', 'titleseparator' );
    function titleseparator() {
    	if ( is_front_page() ) {
    		echo '<hr class="sep" />';
     	}
    	elseif ( is_singular( array( 'post', 'page' ) )  ){
    		echo '<hr class="sep" />';
    	}
    }

    Thanks to all for the good job !

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

You must be logged in to reply to this topic.