• 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

Selectively remove 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 › Selectively remove Breadcrumbs

This topic is: not resolved

Tagged: breadcrumb

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 18, 2015 at 2:00 am #165977
    Mark-C
    Member

    Hi All,

    //* SCRIPT A: Reposition breadcrumbs from before .entry to inside .entry (above title) on single Posts and static Pages
    add_action( 'genesis_before_content', 'mc_reposition_breadcrumbs' );
    function mc_reposition_breadcrumbs() {

    if ( is_singular() ) {
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_entry_header', 'genesis_do_breadcrumbs', 9 );
    }
    }

    //* SCRIPT B: Remove breadcrumb from select pages */
    add_action( 'genesis_before', 'mc_remove_genesis_breadcrumbs' );
    function mc_remove_genesis_breadcrumbs() {
    if ( is_page( 'signup' ) )
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    }

    Running either Script A or Script B independantly works. However, when I run both scripts together only Script A works.

    My Goals
    I need to move all instances of breadcrumbs above the title as per script A. Now, on a select page called 'signup' I need to remove the breadcrumb.

    http://127.0.0.1:4001/wordpress
    December 13, 2015 at 7:56 am #173670
    Susan
    Moderator

    As you posted this a while ago, I’m hoping that you were able to get your issue resolved 🙂 – if not, report back here, so it can be escalated.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2023 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