Community Forums › Forums › Archived Forums › Design Tips and Tricks › Outreach Pro Sub-Footer Widget installed on Agency Pro
Tagged: agency pro, Outreach Pro, sub-footer
- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by Brad Dalton.
-
AuthorPosts
-
January 2, 2014 at 4:05 pm #82766nancimurdockMember
Hello StudioPress Community,
Outreach Pro (just released) has a really cool widget on the home page that flows through to every page in the theme: Sub-Footer. I am trying to install same footer on Agency Pro, but when I copy the following code:
}
//* Add the sub footer section
add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 );
function outreach_sub_footer() {if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) {
echo '<div class="sub-footer"><div class="wrap">';genesis_widget_area( 'sub-footer-left', array(
'before' => '<div class="sub-footer-left">',
'after' => '</div>',
) );genesis_widget_area( 'sub-footer-right', array(
'before' => '<div class="sub-footer-right">',
'after' => '</div>',
) );echo '</div><!-- end .wrap --></div><!-- end .sub-footer -->';
}}
...to my functions.php file in Agency Pro I break the entire website and all that appears is a, "parse error ..... on line 144) To fix it, I actually had to copy the entire Agency Pro functions.php file from the theme demo into my C-panel (same file) at Hostgator.
Any ideas on how I can overcome this? I very much like the call-to-action options of the sub-footer widget, especially as it appear on all web pages - including posts - and would like to incorporate this feature into an Agency Pro website I am building for a client.
Thank you!
http://socialmediabonk.comJanuary 2, 2014 at 4:17 pm #82771Brad DaltonParticipantUse the view raw link to copy the code which does not include the Media Queries.
January 10, 2014 at 7:52 am #84368nancimurdockMemberBrad, I missed this in my email - thank you so much.
I will let you know if/when it works!
January 11, 2014 at 7:39 am #84594nancimurdockMemberHi Brad,
I posted EXACTLY what you sent and nothing happens on any of the pages EXCEPT the blog page, where this appears:
Fatal error: Cannot redeclare outreach_sub_footer() (previously declared in /home2/nanci/public_html/socialmediabonk.com/wp-content/themes/agency-pro/functions.php:119) in /home2/nanci/public_html/socialmediabonk.com/wp-content/themes/agency-pro/functions.php on line 117
I am new to this but am surprised that an error like this (which I do not pretend to understand) would appear on no other page or post than my blog template, which is: http://socialmediabonk.com/inside-scoop/
I apologize for my lack of knowledge - I appreciate your time.
January 12, 2014 at 2:51 pm #84813Brad DaltonParticipantYou must have the code in there already so please remove it or change the name of the function. You cannot use 2 functions with the same name.
January 12, 2014 at 3:33 pm #84829Brad DaltonParticipant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.