Solved

move image below bar

Posted on 2014-04-21
6
222 Views
Last Modified: 2014-05-03
Hi,

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


http://mymrt.net/wordpress/
0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 40012305
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.
0
 

Author Comment

by:jagguy
ID: 40012315
I understand this in regular html but this is wordpress so where do I do this?
0
 
LVL 11

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 40012370
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.

Thanks
~Dex
0
 

Author Comment

by:jagguy
ID: 40012414
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
0
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
ID: 40020008
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="">
		</a>
	</div>
	<?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.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question