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

Crexis Theme Hooks

Crexis 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:

crexis_before_header

Before the site header.

crexis_after_top_bar

After the Top Bar area.

crexis_before_top_bar_left

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

crexis_before_top_bar_right

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

crexis_before_navigation

Before the main site navigation bar.

crexis_before_page_content

Before the main page content area.

crexis_before_page_title

Before the Page Title area.

crexis_after_page_title

After the Page Title area.

crexis_before_footer_widgets

Before the Footer Widgets area.

crexis_before_footer

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

crexis_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( 'crexis_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( 'crexis_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).