• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Reposition breadcrumbs

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Reposition breadcrumbs

This topic is: resolved

Tagged: breadcrumbs, hooks

  • This topic has 7 replies, 3 voices, and was last updated 12 years ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 6, 2013 at 12:07 pm #44377
    mathiasppc
    Member

    I want to reposition my breadcrumbs:

    // Reposition the breadcrumbs
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_before_post_title', 'genesis_do_breadcrumbs' );

    They do not appear on the site when I use the functions above. I`ve tried with several different hooks without any luck.

    Right now they`re showing at the hook 'genesis_before_loop'

    http://energyinformative.org/
    June 6, 2013 at 12:17 pm #44381
    rfmeier
    Member

    Hello,

    Isn't 'genesis_before_post_title' a pre Genesis 2.0 action? Maybe try 'genesis_before_entry' or 'genesis_entry_header' (bumpt the priority down).

    Hope this helps.


    Ryan Meier – Twitter

    June 6, 2013 at 12:20 pm #44383
    Brad Dalton
    Participant

    I think you might need to add a third parameter for priority positioning when using a hook within the loop to reposition.

    This works:

    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_before_post_title', 'genesis_do_breadcrumbs', 55 );
    

    Tutorials for StudioPress Themes.

    June 6, 2013 at 1:00 pm #44395
    mathiasppc
    Member

    Thanks for the quick responses guys. I ended up using the HTML5 markup:

    // Reposition the breadcrumbs

    remove_action( 'genesis_entry_header', 'genesis_post_info' );
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    add_action( 'genesis_entry_header', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_entry_header', 'genesis_do_post_title' );
    add_action( 'genesis_entry_header', 'genesis_post_info' );

     

    Seems a bit unecessary to use 6 lines to reposition (and change the priority) just to reposition the breadcrumbs - is this really the best way to do it?

    June 6, 2013 at 1:22 pm #44399
    rfmeier
    Member

    I wouldn't think you would have to re-arrange all those actions.

    Try;

    remove_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’ );
    add_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’, 9 );

    Brad might have more insight to this.


    Ryan Meier – Twitter

    June 6, 2013 at 1:26 pm #44402
    mathiasppc
    Member

    Perfect that worked! I wasn`t aware of that functionality

    June 6, 2013 at 1:30 pm #44403
    rfmeier
    Member

    You are welcome. Glad I could help.


    Ryan Meier – Twitter

    June 6, 2013 at 1:52 pm #44410
    Brad Dalton
    Participant

    Didn't realize you're using HTML 5 sorry.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble