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 » Sidebars & Widgets »

Can't find area named "Footer: Content" in Add Dynamic Widget areas


  #1  
Old Mar 30, 2015, 12:56 PM
JimTrail's Avatar
JimTrail
 
59 posts · Sep 2010
Knoxville, Tennessee
Hello BFA Forum;

Is it possible for me to put the code below into a footer widget?

Right now I have it hard coded at the bottom of the index.php page.

Where the admin panel says Add DYNAMIC WIDGET AREAS there is a link that says: Style & edit FOOTER: Put the code into the text area named "Footer: Content".

I click the link and nothing happens. There's supposed to be a pop-up box is there not?

Here's the blog:
http://www.hitsnruns.com/blog/

PHP Code:
// --------------------------------------------------
// ### Include the directory path for the server root. ###
// --------------------------------------------------
include('../includes/AbsolutePath.inc.php');
// --------------------------------------------------
// ### Outputs footer links, copyright, trademark information. Footer function on each page. ###
// --------------------------------------------------
require($AbsolutePath.'functions/Footer.inc.php');
// --------------------------------------------------
// ### The eighth element in the array is the link to the blog. ###
// --------------------------------------------------
$OmitPage 7;
// --------------------------------------------------
// ### Call the footer function. ###
// --------------------------------------------------
Footer($AbsolutePath,$OmitPage);
// --------------------------------------------------
// ### Insert the footer. ###
// --------------------------------------------------
echo '<div class="Footer">'.$Footer.'</div>';
// --------------------------------------------------
// ### Insert the logo. ###
// --------------------------------------------------
echo '<div class="LogoFooter"><img src="/images/LogoFooter.png" alt="Hits&thinsp;&lsquo;n&thinsp;Runs D1 Baseball Scores"></div>';
// --------------------------------------------------
// ### Insert the copyright. ###
// --------------------------------------------------
echo '<div class="CopyTrade">'.str_replace("%YEAR%"gmdate("Y"time()), $CopyTradeState).'</div>'
Thank you in advance.

Last edited by lmilesw; Mar 31, 2015 at 12:02 PM.
  #2  
Old Mar 30, 2015, 02:51 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could try
- add a dynamic widget area to the footer,
- install the plugin 'exec-php' or some other php aware plugin,
- Add a text widget to the new widget area
- put the code in that widget

however, that code does not look like a valid php snippet since there is no '<?php' or '?>'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 31, 2015, 09:04 AM
JimTrail's Avatar
JimTrail
 
59 posts · Sep 2010
Knoxville, Tennessee
Juggledad;

Whew! I am glad you caught that. I don't think it's proper methodology to hard code the index page anyway so I removed the code.

I added this code: <?php bfa_widget_area('name=Footer'); ?> in the Style & edit FOOTER area.

I installed the exec-php plugin.

This plugin has not been updated in six years. It looks like it may work but I am kind of afraid it might break some of the other php code.

Is there any easier way to insert a custom footer or are there limitations?
  #4  
Old Mar 31, 2015, 10:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I use that plugin in several sites
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing "footer" along with page content wp-novice Post-Kicker, -Byline & -Footer 11 Jun 14, 2011 10:22 PM
Was instructed to go to "manage"-"page" to change order but can't find "manage" mimilemeu Page & Category Menu Bars 11 Feb 21, 2011 02:23 PM
[SOLVED] styling font for the words &quot;name&quot; &quot;email&quot; etc. in comment area jillin Comments, trackbacks & pings 2 Dec 16, 2010 09:13 PM
Need TRANSPARENT space between "content" and footer JaneD Post-Kicker, -Byline & -Footer 0 Jan 28, 2010 10:20 PM


All times are GMT -6. The time now is 10:50 PM.


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