WordPress.org

Ready to get started?Download WordPress

Forums

Hansel & Gretel: Fine-Tuned Breadcrumb Generator
[resolved] Can't delete the Breadcrumbs from the home (3 posts)

  1. gerard094
    Member
    Posted 10 months ago #

    I've been reading the other themes where it says how to delete the Breadcrumbs on the home, but I don't get it, Do I have to put this code on the functionts.php?

    if (!is_home() && !is_front_page()) {
      if (function_exists('HAG_Breadcrumbs')) {
        HAG_Breadcrumbs();
      }
    }

    Or in the header.php where are the breadcrumbs, cause It doesn't work anywhere.

    I have the breadcrumbs: <?php if (function_exists('HAG_Breadcrumbs')) { HAG_Breadcrumbs(); } ?>
    Almost on the bottom at the header.php

    Thanks

    http://wordpress.org/plugins/hansel-gretel/

  2. Andrew Tegenkamp
    Member
    Posted 10 months ago #

    Have you tried putting that first code block if (!is_home() && !is_front_page()) { in place of <?php if (function_exists('HAG_Breadcrumbs')) { HAG_Breadcrumbs(); } ?>

    Or try this on header.php in place of your current code:

    <?php if (!is_home() && !is_front_page() && function_exists('HAG_Breadcrumbs')) { HAG_Breadcrumbs(); } ?>

    HTH,
    Andrew
    (just a user, not an author or admin of plugin)

  3. gerard094
    Member
    Posted 10 months ago #

    Awesome! It worked putting the code that you posted.

    Thank you so much

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.