layers_before_buddypress_content
Back to Main Index
Outputs your custom code before the opening <section> of the BuddyPress child theme page template.
Location: buddypress.php
Code output appears after:
get_header(); ?>
Code output appears before:
<section id="post-<?php the_ID(); ?>"
Usage
1 |
add_action('layers_before_buddypress_content', 'your_function'); |
Example: Useful for inserting custom widget areas or static blocks of HTML before the start of the BuddyPress content area.
1 2 3 4 5 6 |
add_action('layers_before_buddypress_content', 'layers_show_bp_top'); if(! function_exists('layers_show_bp_top') ) { function layers_show_bp_top() { dynamic_sidebar('layers_bp_top_widgets'); } } |