Skip to content

Instantly share code, notes, and snippets.

@agusmu
Last active December 22, 2015 17:08
Show Gist options
  • Save agusmu/6503540 to your computer and use it in GitHub Desktop.
Save agusmu/6503540 to your computer and use it in GitHub Desktop.
PrimaShop - Show Breadcrumb At The Bottom Of Your Single Page
/* show breadcrumb at the bottom of your single page */
add_action( 'get_header', 'prima_custom_show_breadcrumb_bottom' );
function prima_custom_show_breadcrumb_bottom() {
/* show it in the bottom of your single post*/
if ( is_singular('post') && !prima_get_setting( 'breadcrumb_hide_post' ) ) {
add_action( 'prima_content_after', 'prima_breadcrumb' );
}
/* show it in the bottom of your page */
if ( is_page() && !prima_get_setting( 'breadcrumb_hide_page' ) && !prima_get_post_meta( '_page_breadcrumb_hide' ) ) {
add_action( 'prima_content_after', 'prima_breadcrumb' );
}
/* show it in the bottom of your single product page */
if ( function_exists( 'woocommerce_breadcrumb' ) && is_product() && !prima_get_setting( 'breadcrumb_hide_product' ) ) {
add_action( 'prima_content_after', 'woocommerce_breadcrumb' );
}
}
@agusmu
Copy link
Author

agusmu commented Sep 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment