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 »

replace the header image with a custom banner


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 Feb 2, 2013, 10:07 PM
LGL
 
15 posts · Feb 2011
I would like to add a custom banner rotator to Atahualpa. A few versions back I knew how to do this, but things have changed and I'm stuck. Here is my code:
<?php echo do_shortcode("[all_in_one_bannerWithPlaylist settings_id='1']"); ?>
I read the posts on inserting a widget, but then I have to add another plugin, which I would rather not do. I would like to add that little piece of code to the appropriate php file, but cannot seem to find the proper place. I did get it to work, but it looks pretty crappy, so I know I didn't do it right - It's off center and will only ride above the menu. Please tell me how to edit the php correctly.
  #2  
Old Feb 3, 2013, 04:18 AM
juggledad's Avatar
juggledad
 
21,702 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
you are right that that code no longer works due to WordPress theme requirements. If you want to edit the theme code - which I don't recommend you do since you will have to make the change each time you do an update (how good are you at documenting what you do? I tend to forget) you will need to look at bfa_header_config.php and you could possibly replace the code that processes the '%image' option with your code - you would have to make sure to put the '%image' in the header options

or you could add a new widget area, add a a php aware plugin, add the plugin and put your code there. Then you won't have to worry about it during future upgrades.
__________________
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

Last edited by lmilesw; Feb 3, 2013 at 12:03 PM.
  #3  
Old Feb 7, 2013, 08:49 AM
mcphoto
 
116 posts · Apr 2009
I know it's best-practices to not edit header.php, but it's often a really efficient way to get the most out of the theme.

You really do need to keep a change-log in your job folder and update it.

For some real design power, I often edit index files for making custom post pages (say, to let clients use CMS for a news page and an events page - I have way more success with editing the pages than using plugins). If you want a block of static content above your posts, making a template page is awesome (and I know zero php, but it's easy to guess & test where to paste). If you have a fixed-width page but you want a full-width banner strip across the top ("limited time offer! Like us on facebook!") That's a good place. Always see if you can use the HTML inserts>body top first - but for things like slideshows that replace the APA header image on different pages or things requiring php (like a signup form in the header area) you'll find there's times when editing header.php is really quick and easy.

I keep overall text files of APA tricks and wordpress code snippets, and in my job folders I keep logs of changed theme files, with "before and after" text - and it's a good idea to keep untouched (or latest-functioning edited) copies of those files. If you're charging people, you should really keep your records handy.

Between the power of ATA Theme Options and some occasional file edits, you can do amazing things with this theme. And it loads so freaking fast, even with a massive CSS inserts file. I haven't used HTML for a site in over a year - every single thing I do starts with ATA.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace Atahualpa banner image with gallery/content slider? marsha821 Header configuration & styling 7 Apr 20, 2012 09:10 PM
Replace Header Image with HTML instead of jpg, gif. Can this be done? Calvyn Header configuration & styling 1 May 19, 2011 05:06 AM
How to Replace Header image and set Image from script??? fotomag Header configuration & styling 3 Apr 1, 2011 03:45 AM
How to replace logo pic with an ad banner newyorkchica Header configuration & styling 1 Jun 2, 2009 02:49 AM
Replace Header image with mutiple ads wheregotfree Header configuration & styling 1 Feb 26, 2009 06:35 PM


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


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