Puro has 4 action hooks. Use them from a child theme or a plugin to add content at set places. This page is for developers. For a guide to hooks in child themes, see Using Action Hooks in WordPress Child Themes.
Action Hooks
puro_before_nav
Runs in header.php, inside the header, after the logo and before the main menu.
puro_before_nav_menu
Runs in header.php, inside the menu container, before the menu. It runs only when Header Menu is on. Puro uses it to add the mobile menu button when Mobile Menu and Responsive Layout are on.
puro_content_top
Runs in header.php, after the opening site-content element and after the home page slider.
puro_entry_main_bottom
Runs in the entry footer of single posts, pages and archive entries, before the Edit link. Puro Premium uses it to add the sharing buttons.
Example
This code adds a line at the top of the content area. Put it in the functions.php file of a child theme.
function my_content_top_notice() {
echo '<p>Open Monday to Friday, 9 am to 5 pm.</p>';
}
add_action( 'puro_content_top', 'my_content_top_notice' );
Filters
Puro also has these filters:
puro_copyright_text: the footer copyright text.puro_logo_html: the full logo markup. Related filters:puro_logo_image_id,puro_logo_text,puro_logo_imageandpuro_logo_image_attributes.puro_responsive_menu_resolution: the width, in pixels, where the mobile menu starts.puro_disable_new_widget_area: returnfalseto use the block widgets editor.