Last active
December 22, 2015 17:08
-
-
Save agusmu/6503540 to your computer and use it in GitHub Desktop.
PrimaShop - Show Breadcrumb At The Bottom Of Your Single Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tutorial: http://www.primathemes.com/documentation/primashop-show-breadcrumb-bottom-single-page/