Dear Customers! We're out of the office from the 6th of October to the 11th of October. We sincerely apologize for the inconvenience. For WordPress 5.5.* related issues, please visit this article

Okay
  Print

Waxom Theme Hooks

Waxom comes with numerous theme hooks that you may use to easily add new site content without affecting the parent theme. 

Want to learn more? Please visit this article.

Actions:

waxom_before_navigation

Before the site navigation bar.

waxom_before_top_bar_left

Before the Top Bar content located on the left side of the Top Bar.

waxom_before_top_bar_right

Before the Top Bar content located on the right side of the Top Bar.

waxom_before_page_content

Before the page content area.

waxom_after_page_title

After the page title area.

waxom_before_footer_widgets

Before the Footer Widgets area.

waxom_before_footer

Before the Footer Bottom Bar (the one that holds the copyright text).

waxom_after_footer

After the entire Footer area.


Example usage (in the child theme's functions.php file):

function my_site_new_footer_content() {
    echo 'Hello there! I am in a footer!';
}
add_action( 'waxom_after_footer', 'my_site_new_footer_content' );


Filters

As for now, only one filter is available that allows you to change the portfolio post type slug (used in the URL). To change the portfolio post slug, please use the following code:

function my_site_portfolio_slug( $portfolio_slug ) {        
return 'works'; // New portfolio slug
}
add_filter( 'waxom_portfolio_slug', 'my_site_portfolio_slug' );

After doing so, please reset your Permalinks (go to Settings / Permalinks, change them back to default, save and then change back to pretty permalinks).