Solved

move image below bar

Posted on 2014-04-21
6
220 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

856 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