Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Is a "fluid" Header image possible?

Old Jan 26, 2010, 07:17 PM
4 posts · Jan 2010
I searched the forums and found an old post from last year about this http://forum.bytesforall.com/showthread.php?t=301

However the code mentioned to be changed looks different now and i'm guessing that is because of updates and what not. Just want to make sure that the majority of it is still relevant. Or maybe there's a better/easier way to do this now.

I am currently using the style, "Overlayed Blog Title/Tagline Style" to display that info and then center it within the header(which is awesome!) and am hoping that doing the above would also keep this the same and center it non the less.
Old Jan 28, 2010, 12:44 AM
4 posts · Jan 2010
Well i've tried adding the following in HTML INSERTS: HEADER
<script type="text/javascript"> 
	// Header image auto resize on views resolution
	var headerwidth = jQuery("td#header").width(); 
	jQuery("#imagecontainer").each(function() { 
		var maxwidth = headerwidth + 'px';
		var imgwidth = jQuery(this).width(); 
		var imgheight = jQuery(this).height(); 
		var newimgheight = (headerwidth / imgwidth * imgheight) + 'px';    
		if (imgwidth > headerwidth) { 
		   jQuery(this).css({width: maxwidth}); 
		   jQuery(this).css({height: newimgheight}); 
#imagecontainer { max-width: 100%; width: auto 100%; height: auto 100%; }
But the header image is not resizing when someone with a smaller resolution views my website. I have a netbook that i've been testing it out on. the image still gets cut off.

The code above is basically from the post i mentioned and after viewing the current code in the header.php i changed it accordingly to what i thought would make it work. I don't know how jQuery works either, but it appears to be checking for what was inputted in for the height/width for the image and the width of the overall layout but my layout is a percentage and not a number... and only the height of the image is a number that was defined within the configuration in HEADER IMAGE. I'm not sure if it is able to determine the actual size of the image or if it's looking for values that have defined it exactly.

Ultimately if i can get this sorted i'd love to do the same for the background image.

Any help is much appreciated. TIA.
Old Jan 29, 2010, 11:10 AM
4 posts · Jan 2010
Was reading around and saw donations are required for more customized help, like my post. So i've happily donated, as i think this theme is well deserved for the amount i sent. Milk and cookies on me! :P
Old Feb 3, 2010, 03:04 AM
4 posts · Jan 2010
bumpity bump.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to select "Only Exerpts"/"Full Posts" for certain post? shus Center area post/pages 4 Jan 19, 2010 02:41 PM
How to change the font of "1 comment to..." and "Leave a Reply" headers RHCdG Header configuration & styling 1 Nov 28, 2009 05:56 AM
How can I add an image to a post and have it "float" so the text wraps around it? scrubbs Excerpts, Read more, Pagination 17 Nov 25, 2009 02:35 PM
Background color "sub-pages" and "whole menu bar" gxxfy Page & Category Menu Bars 1 Nov 24, 2009 03:46 AM
Multiple image header with different alignments for fluid width? haenchensd Header configuration & styling 1 Aug 8, 2009 06:28 AM

All times are GMT -6. The time now is 05:26 AM.

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