Where did you place the text in the header? Can you paste a few lines here? What text you want to place?
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: hello@colourpopdesign.com</div>
I would like to add ‘t: 01628 440 149 // e: hello@colourpopdesign.com’
Do I need to add a div id to style.css? A little out of my depth here!
Thanks for any help.
Susie
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?
ok thanks….Modularity lite, child theme.
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' ) ); ?>
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.
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 doubling the middle figure and keeping the left and right zeros the same.
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!