Steve Borsch
Member
Posted 3 months ago #
My client wants the entire footer modified to have specific links within it. I've tried modifying it (after reading: http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext ) but keep getting the white screen of death...even if I only replace the Frisco URL and text "Frisco Theme".
Can't figure out what I'm doing wrong and I'm already way past the "two hour rule" (my own "if-I-can't-figure-it-out-by-then-I-ask-for-help" rule).
http://wordpress.org/extend/themes/frisco-for-buddypress/
David Carson
Member
Posted 3 months ago #
Instead of modifying the frisco_sitecredits function, it's probably better to just copy over footer.php from the bp-default theme folder and put it in the Frisco theme folder. Then you can edit everything directly.
The Frisco theme doesn't have a footer.php file because it's using the default template from bp-default. And that frisco_sitecredits function was included just to filter the default credit text of the bp-default theme.
I have similar problem. I´d like to add info about my site and Keep your credit by the way, but I can´t do it.
I download de footer default and I upload into Frisco Theme folder, is right this?
I´ll appreciate a lot your suggestions
Steve Borsch
Member
Posted 3 months ago #
Yes. You make a copy of "footer.php" from the Buddypress default theme folder and then place that copy (renamed from "footer copy.php" to "footer.php", of course) in your Frisco theme folder.
Here is the code I changed so you can look at the differences between the Buddypress default theme code and what I used:
</div> <!-- #container -->
<?php do_action( 'bp_after_container' ) ?>
<?php do_action( 'bp_before_footer' ) ?>
<div id="footer">
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) || is_active_sidebar( 'second-footer-widget-area' ) || is_active_sidebar( 'third-footer-widget-area' ) || is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
<div id="footer-widgets">
<?php get_sidebar( 'footer' ) ?>
</div>
<?php endif; ?>
<div id="site-generator" role="contentinfo">
<?php do_action( 'bp_dtheme_credits' ) ?>
<p>This website is brought to you by <strong><a href="http://www.yourdomainhere.com">Your Domain Name</a></strong><br />Send Email to <strong><a href="mailto:you@yourdomainhere.com">Your Name</a></strong></p>
</div>
<?php do_action( 'bp_footer' ) ?>
</div><!-- #footer -->
<?php do_action( 'bp_after_footer' ) ?>
<?php wp_footer(); ?>
</body>
</html>
Steve Borsch
Member
Posted 3 months ago #
Should mention that -- if you want to keep the Frisco for Buddypress code in this footer.php file -- I'm guessing you will have to copy-n-paste that code and place it within here...but I didn't do that so you will have to experiment to see what works.
Thank you Steve.
I changed the code but I didn´t get change the footer. What´s wrong? I upload the footer file into Frisco folder theme, I think this is correct.
[Code moderated as per the Forum Rules. Please use the pastebin]