Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Using a custom header image?


  #1  
Old Nov 9, 2012, 03:37 PM
Dynamik1
 
3 posts · Nov 2012
[SOLVED] Using a custom header image?

Hi,

I am trying to setup a blog for my wife's fitness business. I like this design, but I'm used to simply being able to upload a custom header image file. I'm sure there are many great reasons and lots of amazing other things that I have not even begun to scratch the surface on yet, but my wife paid a graphic designer to create her blog header image and we'd like to paste it above the menu bar area.

I apologize if this is sticky'd somewhere, but I'm really trying to get this done for her ASAP.

How to do?

Last edited by Dynamik1; Nov 9, 2012 at 04:18 PM.
  #2  
Old Nov 9, 2012, 04:09 PM
Dynamik1
 
3 posts · Nov 2012
And, I've got it :-)

Edited the header.php file as follows:
1. Added the <img src> following the <a href="<?php echo home_url(); ?>"> entry

<a href="<?php echo home_url(); ?>">
<img src="http://www.YourDomainNameHere.com/wp-content/themes/montezuma/images/logo.png">
</a>

2. The image appeared all scrunched up so I had to edit the vertical space for the logo-img by increasing the columns available. Default was col2 - I changed it to col8
<div id="logo-img" class="col8">

3. Then I had to change the horizontal space by decreasing the columns available for the menu-wrapper. Default was col6, I reduced to col3
<?php wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'menu-wrapper col3',

Voila!!
  #3  
Old Nov 9, 2012, 04:19 PM
Dynamik1
 
3 posts · Nov 2012
Maybe not so fast!

I seem to have increased the white space beneath the menu bar pretty significantly. I know this is RESPONSIVE, but I'm not sure where to reduce that space I responsively increased :-)
  #4  
Old Nov 9, 2012, 04:58 PM
juggledad's Avatar
juggledad
 
23,743 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Remember all cols for a row have to equal 12
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 10, 2012, 06:37 AM
juggledad's Avatar
juggledad
 
23,743 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try this: If you want the logo image

1) above the blog title/menu replace the 'banner-br' div in the 'header.php' with
HTML Code:
<div id="logo-img" class="col12 row">
	<a href="<?php echo home_url(); ?>">
           	<img src="http://www.YourDomainNameHere.com/wp-content/themes/montezuma/images/logo.png">
	</a>
</div>

<div id="banner-bg" class="cf">
	<div id="banner" class="row">
		<div id="logo-area" class="col5">
			<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
				<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
			<<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
			<p id="tagline"><?php bloginfo( 'description' ); ?></p>
		</div>
		<?php wp_nav_menu( array( 
			'container' => 'nav', 
			'container_class' => 'menu-wrapper col7', 
			'container_id' => 'menu1-wrapper', 
			'menu_id' => 'menu1', 
			'menu_class' => 'cf menu', 
			'theme_location' => 'menu1', 
			'fallback_cb' => 'bfa_page_menu' 
		) ); ?>
	</div>
</div>
2) if you want it inline with the title and menu use this (adjusting the columns to your needs)
HTML Code:
<div id="banner-bg" class="cf">
	<div id="banner" class="row">
		<div id="logo-img" class="col2">
		  <a href="<?php echo home_url(); ?>">
              <img src="http://www.YourDomainNameHere.com/wp-content/themes/montezuma/images/logo.png">
          </a>
		</div>
		<div id="logo-area" class="col3">
			<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
				<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
			<<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
			<p id="tagline"><?php bloginfo( 'description' ); ?></p>
		</div>
		<?php wp_nav_menu( array( 
			'container' => 'nav', 
			'container_class' => 'menu-wrapper col7', 
			'container_id' => 'menu1-wrapper', 
			'menu_id' => 'menu1', 
			'menu_class' => 'cf menu', 
			'theme_location' => 'menu1', 
			'fallback_cb' => 'bfa_page_menu' 
		) ); ?>
	</div>
</div>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Dec 10, 2012, 08:14 AM
Virtualmotorpix
 
21 posts · Nov 2012
Is it possible to get a picture to sit behind the title, menu and tagline? I've tried placing it in so many different places now.

EDIT: Got it. Added my own class to header.php in the banner div, then entered the image and style in content.css

Last edited by Virtualmotorpix; Dec 10, 2012 at 09:19 AM.

Bookmarks

Tags
header

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
use custom menus as simple overlays of header image? avantlit Header configuration & styling 1 Nov 6, 2012 12:02 PM
[SOLVED] Custom Hyperlink My Header Image... kmages Header configuration & styling 6 May 21, 2011 06:53 PM
[SOLVED] Template with Custom Header -- No Image epsymp Header configuration & styling 9 Mar 2, 2011 05:20 PM
HTML/CSS inserts in Atahualpa 3.4.1 (for custom header image slider) csb Header configuration & styling 3 Nov 16, 2009 07:02 PM
Custom links IN header image mkny13 Header configuration & styling 7 Jul 21, 2009 11:13 AM


All times are GMT -6. The time now is 08:46 PM.


Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.