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 »

[SOLVED] Need a footer that changes according to what page is displayed


  #1  
Old May 3, 2013, 02:02 PM
DanDan
 
41 posts · Aug 2010
I have a full width footer. I have two footer images I need to use and need them to change depending on what page is displayed. I already have changing headers but cannot figure out how to adapt this footer solution to change.

The code I am using for the footer is:

html {background-image:url(/wp-content/themes/atahualpa/images/background_footer_or.jpg);background-repeat:repeat-x;background-position:left bottom;}

Can you point me in the right direction?

Thanks,

Dan
  #2  
Old May 3, 2013, 03:38 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is the URL?
where exactly are you putting that CSS? use the ato->.... method to point direcetly to the option you put it in.

Last edited by juggledad; May 3, 2013 at 03:41 PM.
  #3  
Old May 3, 2013, 04:39 PM
DanDan
 
41 posts · Aug 2010
The temporary URL is http://securexsl.net, it's still under construction so some pages are missing.

I added the footer background to the html/css inserts in admin/appearance/atahualpa theme options

Some pages have an orange theme and some have a green theme, but as yet I have not figured out how to change the footer from orange to green.

I think it was you that posted to use this method to add a full wide footer image in a previous post.

Dan
  #4  
Old May 3, 2013, 04:46 PM
DanDan
 
41 posts · Aug 2010
To make it easier to see what I want to do, http://www.securexsl.net/meals/signature-lifestyle/ has a green theme, http://www.securexsl.net/roth-culinary-scene/ has an orange theme
  #5  
Old May 3, 2013, 05:08 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use something like this
HTML Code:
html body {
    background-image: url("http://www.securexsl.net/wp-content/themes/atahualpa/images/background_main_gn.jpg");
    background-position: left bottom;
    background-repeat: repeat-x;
}
html body.page-id-1189 {
    background-image: url("http://www.securexsl.net/wp-content/themes/atahualpa/images/background_footer_or.jpg");
    background-position: left bottom;
    background-repeat: repeat-x;
}
the first sets the default and the second overrides it for the particular page - you will have to change your page number and the image names, I was just playing.
  #6  
Old May 6, 2013, 04:23 PM
DanDan
 
41 posts · Aug 2010
I am already using:

body.page-id-166 {
background: url(/wp-content/themes/atahualpa/images/background_main_or.jpg);
background-repeat: repeat-x;
}

to change the main background from green to orange for a full width background behind the header.

I am also using in header.php:

<?php if(is_page('Couples')){
include('header_02.php');
}

to switch from header_01.php to header_02.php.

I also have:

html {background-image:url(/wp-content/themes/atahualpa/images/background_footer_gn.jpg);background-repeat:repeat-x;background-position:left bottom;}

to add a full width bottom but I need to also change the bottom image when the top image changes.

Your solution knocks out the top background image. Is there another way to change the bottom full width background when the top background changes?

Thanks,

Dan
  #7  
Old May 6, 2013, 05:59 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
go to ato->export/import settings and export your settings. save them to a TEXT file and attach them to a reply
  #8  
Old May 6, 2013, 07:41 PM
DanDan
 
41 posts · Aug 2010
attached,

Thanks,

Dan
Attached Files
File Type: txt ata-wwwsecurexslnet-20130507.txt (23.4 KB, 712 views)
  #9  
Old May 7, 2013, 06:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I have a suggestion. Since you are just using a color for the line above the footer, why not use a border-top? try this: at ato->Style & Edit Footer->Footer Content add the following before anything else
HTML Code:
</td></tr></table></div></div>
<div id="divfooter"><div><table id="tablefooter">
<tr><td>
then in the css inserts add
HTML Code:
div#divfooter {width:100%;}
table#tablefooter {margin:auto;}
now to add the line for the footer for a page use
HTML Code:
body.page-id-857  #divfooter { border-top: solid 2px orange; }
body.page-id-866  #divfooter { border-top: solid 2px green; }
you might want to match your color exactly with the #rrggbb value. If you have multiple pages with the same color, you can use

HTML Code:
body.page-id-1  #divfooter,
body.page-id-4  #divfooter,
body.page-id-866  #divfooter { border-top: solid 2px green; }
just top keep the code cleaner.
  #10  
Old May 7, 2013, 08:48 AM
DanDan
 
41 posts · Aug 2010
That worked perfectly!

Thanks,

Dan

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
can a picture of the post be displayed on the main page? hellside Montezuma Theme 2 Mar 17, 2013 09:27 PM
Page title displayed at top of each page (safari and mobile browsers only) mickocd Center area post/pages 13 Sep 1, 2011 06:19 AM
Page header - can this not be displayed? rosetrees Atahualpa 3 Wordpress theme 2 Nov 17, 2009 02:11 PM
[SOLVED] a parse error rather than the 404 page displayed when page not found lhanft Atahualpa 3 Wordpress theme 4 Oct 22, 2009 09:04 PM


All times are GMT -6. The time now is 02:14 AM.


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