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 »

replace the header image with a custom banner


  #1  
Old Feb 2, 2013, 11: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, 05:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Feb 3, 2013 at 01:03 PM.
  #3  
Old Feb 7, 2013, 09:49 AM
mcphoto
 
120 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



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 10:10 PM
Replace Header Image with HTML instead of jpg, gif. Can this be done? Calvyn Header configuration & styling 1 May 19, 2011 06:06 AM
How to Replace Header image and set Image from script??? fotomag Header configuration & styling 3 Apr 1, 2011 04:45 AM
How to replace logo pic with an ad banner newyorkchica Header configuration & styling 1 Jun 2, 2009 03:49 AM
Replace Header image with mutiple ads wheregotfree Header configuration & styling 1 Feb 26, 2009 07:35 PM


All times are GMT -6. The time now is 01:18 PM.


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