-
-
Save ntwb/0f36597a6a0c5b76d72b to your computer and use it in GitHub Desktop.
bbPress - Custum Before & After Content Wrapper HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: bbPress - Custum Before & After Content Wrapper HTML | |
Plugin URI: https://gist.github.com/ntwb/ | |
Description: bbPress - Custum Before & After Content Wrapper HTML | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ | |
add_action ( 'bbp_before_main_content', ntwb_bbpress_custom_before_html_wrapper); | |
function ntwb_bbpress_custom_before_html_wrapper() { | |
?> | |
<div id="my-theme-container"> | |
<div id="my-theme-content" role="main"> | |
<?php | |
} | |
add_action ( 'bbp_after_main_content',ntwb_bbpress_custom_after_html_wrapper); | |
function ntwb_bbpress_custom_after_html_wrapper() { | |
?> | |
</div><!-- #my-theme-content --> | |
</div><!-- #my-theme-container --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment