From 636e8fd84923d21dca005c4a0cb25d1d058dbd2e Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Thu, 20 Jun 2024 09:44:40 -0600 Subject: [PATCH] added breadcrumbs --- functions.php | 231 ++++++++++++++++++++++++++++++++++++++++++++++++++ index.php | 0 2 files changed, 231 insertions(+) create mode 100644 index.php diff --git a/functions.php b/functions.php index 99ab825..a3a5526 100644 --- a/functions.php +++ b/functions.php @@ -31,3 +31,234 @@ function my_widgets_init() { ) ); } + +// Breadcrumbs +function custom_breadcrumbs() { + + // Settings + $separator = '>'; + $breadcrums_id = 'breadcrumbs'; + $breadcrums_class = 'breadcrumbs'; + $home_title = 'Homepage'; + + // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat) + $custom_taxonomy = 'product_cat'; + + // Get the query & post information + global $post,$wp_query; + + // Do not display on the homepage + if ( !is_front_page() ) { + + // Build the breadcrums + echo ''; + + } + +} \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..e69de29