• Resolved SRCreative

    (@srcreative)


    Hi,
    Please can someone help me with this as I’m still not having any luck….

    I’m trying to add a line of text directly underneath my main nav bar at https://www.susierichards.com. I’ve tried to add code to the header but it just throws my entire nav bar and logo off. Can someone point me in the right direction.

    thanks a lot,
    Susie

Viewing 15 replies - 1 through 15 (of 18 total)
  • Where did you place the text in the header? Can you paste a few lines here? What text you want to place?

    Thread Starter SRCreative

    (@srcreative)

    Hi Krishna,

    In header.php under:

    </head>

    <body <?php body_class(); ?>>
    <div id=”top”>

    I placed the following code (which I found in the source code of another site that has text where I want mine to go):

    <div id=”callus”>t: 01628 440149// e: [email protected]</div>

    I would like to add ‘t: 01628 440 149 // e: [email protected]

    Do I need to add a div id to style.css? A little out of my depth here!

    Thanks for any help.

    Susie

    Thread Starter SRCreative

    (@srcreative)

    Am I way off beam with the above code??????

    If you place the text outside </header>, it will not appear in the header and may go elsewhere (maybe anywhere, and possibly you will not be able to locate it). If you place the text just below <body> it will appear within the body.

    If you place text within header and it displaces nav bar, it means there is no space for the text there. You have to create space. By the way, which theme are you using?

    Thread Starter SRCreative

    (@srcreative)

    ok thanks….Modularity lite, child theme.

    Thread Starter SRCreative

    (@srcreative)

    I can’t see </header> in header.php, only </head>???

    I think you know it already, check and try. I have checked your theme already, it is good that use a child theme. If it does not fit where I already indicated, place the text after the </div> for all navigation bars. It is a short cut. It may appear weird first, sometimes, but trying h3, h4, etc. You can get the desired effect.

    I hope you don’t end up by creating something like –> as you did earlier.

    You may try this in header.php

    <h4 class="left"><a href="<?php echo home_url( '/' ); ?>" title="<?php _e( 'Home', 'modularity' ); ?>" class="logo"><?php bloginfo( 'name' ); ?></a> <span class="description"><?php bloginfo( 'description' ); ?></span></h4>
    </div>
    
    <!---YOU MAY TRY HERE --->
    	<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'main-nav' ) ); ?>
    Thread Starter SRCreative

    (@srcreative)

    HI,
    Thank you for your advice! I think the time difference has seen the long delay in my response but I’m getting there! I just need a little bit more space between the text and the black box underneath.

    This is what I have in style.css

    #callus {
    float: right;
    font-size: 14px;
    padding: 0 19px 0;
    text-align: left;
    color: #EEEEEE;

    I’ve played around with numbers in the padding: line above but none seem to give me any more space. Aggghhhhh!

    Go to settings (Dashboard) and try adding the text you want to add in the box tagline and see what happens, if there is no text/ description there. If it is not possible, we can try other alternatives.

    Thread Starter SRCreative

    (@srcreative)

    I’ve got the text almost where I want it on the site with the code I have added but I just need a little more space below it.

    What’s your site?

    Try changing like this:

    padding: 0 19px 19px 0;

    Thread Starter SRCreative

    (@srcreative)

    nope. it hasn’t budged.

    Try doubling the middle figure and keeping the left and right zeros the same.

    Thread Starter SRCreative

    (@srcreative)

    That seems to add the padding between the line of text and the actual slideshow, not the black box. Sorry this is taking so long!

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Add text underneath nav bar’ is closed to new replies.