Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] How To Overlay Header Image With Widget


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Aug 5, 2009, 09:21 PM
dan.s.ward
 
4 posts · Aug 2009
How can I overlay a widget area on the header image?

v3.4.1
  #2  
Old Aug 6, 2009, 04:18 AM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
You can create a widget area in the header, but there is no builtin feature to 'overlay' a widget on the header image. To do something like this would involve modifications to the code
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Aug 8, 2009, 11:01 AM
dan.s.ward
 
4 posts · Aug 2009
I figured out a way to do it without editing code and thought I'd share my solution.
  • Style and Edit Header Area -> Configure Header Area
HTML Code:
%pages
%bar1
<!-- Replace %image header item with the following html/php code -->
<div id="header-image-container" class="header-image-container">
  <div class="opacityleft">&nbsp;</div>
  <div class="opacityright">&nbsp;</div>
  <div class="titleoverlay">
    <h2 class="blogtitle">
      <a href="http://www.example.com/"><?php echo $bfa_ata['bloginfo_name'] ?></a>
    </h2>
    <p class="tagline"><?php echo $bfa_ata['bloginfo_description'] ?></p>
  </div>
  <!-- Style wrapper for widget area -->
  <div id="header-widget-area-container">
    <!-- Add new widget area -->
    <?php bfa_widget_area('name=Header Widget Area'); ?>
  </div>
</div>
%bar2
  • Add HTML/CSS Inserts -> CSS Inserts
Code:
/*
Since we removed the %image header item, the CSS
for the header-image-container class won't be generated
so we have to add it ourselves.
I'm using the tag id instead to prevent conflicts just in case.
*/
#header-image-container{
position:relative;
margin:0;
padding:0;
height:150px;
background: url('HEADER-IMAGE-URL-GOES-HERE') center center no-repeat;
}

/* Styles to be applied to our new widget area container */
#header-widget-area-container{
width:200px;
float:right;
}
  • Add widgets to the new widget area

The opacity and blog title overlay elements can still be configured in the 'Header Image' settings. However, I don't think the rotating images will work. They never worked for me anyway, so I can't test it. It shouldn't be too hard to add the necessary javascript though.

Last edited by dan.s.ward; Aug 9, 2009 at 01:27 PM. Reason: Improve the example code to include dynamic blog title and tagline

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make logo area on beside or overlay header image? phuongnv Header configuration & styling 16 Mar 17, 2011 06:09 PM
[SOLVED] For the life of me, I can't overlay the blog title in the header image? weightlosscoach Header configuration & styling 2 Mar 20, 2009 08:24 AM
Can't get logo and header image overlay to be centered on all screen resolutions jockoe Header configuration & styling 1 Feb 27, 2009 02:44 PM
Header image and widget image mamngirl Header configuration & styling 1 Feb 4, 2009 12:36 PM


All times are GMT -6. The time now is 05:29 PM.


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