Chris
Forum Replies Created
-
Howdy crhodes,
Thanks for using H&G and the great suggestion! You can actually implement that as it stands right now using CSS and a class or id set on the home crumb.
Let me know if you have any questions!
– Chris
Howdy,
The documentation for configuring H&G can be found on the GitHub repo for the project:
https://github.com/Clark-Nikdel-Powell/Hansel-and-Gretel
If you want to hide the home link and remove the separator, you will need to call H&G like so:
if (function_exists('HAG_Breadcrumbs')) { HAG_Breadcrumbs(array( separator => '', home_show => false )); }
Hi emielm,
Sorry for the delay in response! Thank you for using H&G, but unfortunately it cannot handle post-type relationships at this time as WP does not have methods of relating posts to posts out of the box. In the near future, we will be releasing an update that will allow you to hook into the crumb generation and add/remove crumbs at will.
– Chris
Forum: Plugins
In reply to: [Hansel & Gretel: Fine-Tuned Breadcrumb Generator] Multisite EnabledThanks Nico,
I was going to test it when I had the chance on multisite after the next release. I’ll keep in mind the multisite capability when we build out the admin interface for the plugin.
Stay tuned!
– ChrisForum: Plugins
In reply to: [Hansel & Gretel: Fine-Tuned Breadcrumb Generator] Archive ErrorHi Wolfgang,
This error has already cropped up and has been addressed. There is a small change you need to make to the plugin (which will be permanently implemented at the next release).
Let me know if you have any other issues!
– Chris
Forum: Plugins
In reply to: [Hansel & Gretel: Fine-Tuned Breadcrumb Generator] HAG Home link toHi absolud,
Looks like we were using the wrong function to pull in the site address to those crumbs. As a temporary fix (which will be rolled permanently into the next release), please change lines 301 & 309 in HAG_Crumb.php (in the plugin directory) from
site_url()
tohome_url()
That should make the links point to the right location! Let me know if you have any other issues. I’ll hold off closing this until I hear back from you.
– Chris
Hello,
Thanks for the tip! I will definitely incorporate this into the next release. If you notice any other issues like this, please let me know!
– Chris
Hello again,
Sorry about the delay. From what I’m seeing, it may be theme related. I’m working on a fix that will bypass that issue (and perform better in general). I’ll let you know when the changes are completed here.
– Chris
It might be related to the theme, but I’d like some more information before I blame it on the theme ??
Two questions and one request for you:
1) What version of WP are you running?
2) What version of H&G do you have installed?
3) Can you setdebug_show
to true and post the contents of the HTML comment it generated on one of those date archive pages (feel free to redact anything you don’t want to post here on the forum, I just want to see what the queried object the plugin is seeing)Hi Celia,
Glad you enjoy it! If you don’t want the crumbs to appear on your home page (or front page, depending on your theme), wrap the breadcrumb function in this really simple conditional (which uses WordPress’ built-in conditional tags):
if (!is_home() && !is_front_page()) { if (function_exists('HAG_Breadcrumbs')) { HAG_Breadcrumbs(); } }
Let us know if you have any other questions!
Howdy,
Thanks for the kind words, and we’re glad you like H&G! I’m not sure I fully understand what you’re asking for here, but if you specify the
crumb_element
andlast_class
orlast_id
, you can customize (via CSS or a JS library like jQuery) the last crumb however you want:HAG_Breadcrumbs(array( 'crumb_element' => 'span', 'crumb_class' => 'last' ));
And in your CSS:
#breadcrumbs .last:before { content: ''; width: 16px; height: 16px; background: (path/to/my/image.png) no-repeat; }
Or if you need it to work in old IE, you might use JS instead (a la jQuery):
jQuery(function($) { var $img = $('<img/>', { src: 'path/to/my/image.png' }); $('#breadcrumbs .last').prepend($img); });
Let me know if this is what you were looking for or if you need something different. We’re currently working on adding action/filter hooks so you can manipulate the crumbs as they are generated (the text/link/etc…) as well as their order before being outputted. That might be a solution that is better suited to your needs.
Let us know!
Hi andamira,
Thanks for using H&G! I’m sorry it’s giving you issues with your date archives. What version of H&G are you using? If you remove the option parameters from your call to
HAG_Breadcrumbs()
does the error message still occur?– Chris
Forum: Plugins
In reply to: [Hansel & Gretel: Fine-Tuned Breadcrumb Generator] WoocommerceI’m guessing you got this to work, so I’m going to mark this as resolved. Let me know if you still need help.
Forum: Plugins
In reply to: [Hansel & Gretel: Fine-Tuned Breadcrumb Generator] WoocommerceHello,
Thanks for your interest in H&G! I am not familiar with WooCommerce or WooThemes, but since I believe WooThemes extends the functionality of the native WP themes, you will just drop in that code in your theme file(s) where you want the breadcrumbs to appear. Without knowing more about your theme/setup, it’s hard to determine where you are having an issue.
Currently, a settings page for H&G does not exist; you will need to set your options in the function call above (see the documentation for the list of options and settings). The settings page will become available in a future release.
Let me know if this helps or if you need further info!
Forum: Plugins
In reply to: [Hansel & Gretel: Fine-Tuned Breadcrumb Generator] Only show on child pagesHi Dawn,
H&G itself does not differentiate between parent and child pages, but you can implement that functionality yourself in your theme by wrapping the call to
HAG_Breadcrumbs()
in a conditional. The WP Codex section on Conditional Tags shows how to check if you are on a subpage.Let me know if you have any other questions!
-Chris