Finding the footer in php files
-
Hi,
Can anyone tell me where I can find the footer of bbpress please so I can add html text at the base across the whole of the bbpress forums and pages etc.
Can’t find it and looked for footer.php?
Regards,
Gareth
-
i think it was a class called “entry-footer”
@schwarzkopfclub thank you will look into it!
@schwarzkopfclub Thanks you have been a legend and set me well on my way. Also gave me the terms to google and find a plugin that will help generally also:
What The File is the best tool to find out what template parts are used to display the page you’re currently viewing!:
https://wordpress.org/plugins/what-the-file/
Also on the codex:
Thanks again,
Gareth
Right then after some trial and error:
You can add into the footer on the main bbpress forum page by editing the following file:
\wp-content\plugins\bbpress\templates\default\bbpress\content-archive-forum.php
Just add whatever you need where I have put
<p>Example text here</p>
on the following code<?php endif; ?> <p>Example text here</p> <?php do_action( 'bbp_template_after_forums_index' ); ?> </div>
Hope this helps others who need this advice!
Regards,
Gareth
What I was mainly after was adding the little yellow text notice box that’s there on creating or replying topics. Like the one that states Your account has the ability to post unrestricted HTML content. within the yellow notice box.
If you want the same you can add this is using my example above. Just replace Example text here. text with your own custom notice. Hope this helps someone out!
<div class="bbp-template-notice"> <p><?php _e( 'Example text here.', 'bbpress' ); ?></p> </div>
Regards,
Gareth
- You must be logged in to reply to this topic.