• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

move image below bar


How do I move the horizontal bar which is below the image  to above the image on top of screen with 2014 theme in wordpress

1 Solution
Marco GasiFreelancerCommented:
In your html you have to put header before of site-header but I've not idea if this can break your lauout: just give it a try.
jagguyAuthor Commented:
I understand this in regular html but this is wordpress so where do I do this?
Tej Pratap Shukla ~DexterServer AdministratorCommented:
Hey there

Well you can mention the header div i.e div class="header-main " before the div site header  and add div clear class to make sure that they get aligned properly and donot restrict each other's alignment.

Feel free to revert back for further queries.

jagguyAuthor Commented:
where do you do this though as wordpress isnt a simply html file.

I know you can swap the divs around but what file as I believe the html files are assembled by php files
You should move this code block in header.php in your theme:
	<?php if ( get_header_image() ) : ?>
	<div id="site-header">
		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
			<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
	<?php endif; ?>

Open in new window

above the line:
<div id="main" class="site-main">

Open in new window

Make changes in child theme, so first copy header.php into your child theme's folder.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now