WordPress.org

Ready to get started?Download WordPress

Forums

Origin
[resolved] Removing breadcrumbs (8 posts)

  1. setkun
    Member
    Posted 1 year ago #

    Hello everybody,
    recently I got myself into the Origin theme.
    I would like to remove the breadcrumbs, but I simply can't figure out how.
    Does anyone have any ideas?
    Thank you in advance!

  2. adelespi
    Member
    Posted 1 year ago #

    I have the same question!

  3. setkun
    Member
    Posted 1 year ago #

    I had tried commenting out line 47:
    'show_home' => __( 'Home', 'breadcrumb-trail' ), in the file: library/extensions/breadcrumb-trail.php, but it didn't work out and breadcrumbs are still showing.
    Does anyone by any chance know what to do, please? :)

  4. clickmac
    Member
    Posted 1 year ago #

    add this to your css

    .breadcrumb-trail {
    display: none;
    }

  5. setkun
    Member
    Posted 1 year ago #

    Thanks a lot! :)

    Worked out after I added the other label:
    .breadcrumbs { display:none;}

  6. paulwpxp
    Font hero
    Posted 1 year ago #

    Please never touch the parent theme directly, make modifications in childtheme only.
    http://codex.wordpress.org/Child_Themes

    Once you have child theme set up properly, put that above code in style.css which will only "display:none" that part. The code is still there in the source code of page but it's invisible which is suffice in this case.

    Or put this in functions.php, this should remove the code entirely.

    add_filter( 'breadcrumb_trail', '__return_false' );
  7. netzschrauber
    Member
    Posted 1 year ago #

    Thanks!

    You can also create functions.php in your child theme and then add the lines to the newly created functions.php:

    <?php
    add_filter( 'breadcrumb_trail', '__return_false' );
    ?>

    I just recognized, that usage of CSS id="site-site-description" is used for a '<div>' or for a '<h2>' element, depending on your content. Now I know why the silver bottom line only appears to my start/entry page...

  8. clickmac
    Member
    Posted 1 year ago #

    and if you have something like this @paulwpxp and @netzschrauber

    .home #featured .col-460:first-child {
    display: none;
    }

    in the css, how can you add this to the filter?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic