• 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

Add Breadcrumbs ONLY in search results page

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 › Design Tips and Tricks › Add Breadcrumbs ONLY in search results page

This topic is: resolved

Tagged: breadcrumbs, genesis_do_breadcrumbs, is_search, search results

  • This topic has 4 replies, 2 voices, and was last updated 3 years, 7 months ago by spiezz.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 13, 2019 at 3:59 pm #492966
    spiezz
    Participant

    I think my question is really "what is the class for the search results page"?

    My client doesn't want breadcrumbs anywhere else and the genesis settings aren't that specific.

    Ideas?

    http://www.anoleannals.org
    August 13, 2019 at 11:30 pm #492969
    Brad Dalton
    Participant

    You could remove the breadcrumbs conditionally.

    Swap out :

    if ( is_post_type_archive( 'portfolio' ) ) {
    

    With :

    if ( ! is_search() ) {
    

    ! means NOT and is a PHP operator

    is_search targets the search page. This is a conditional tag.


    Tutorials for StudioPress Themes.

    August 14, 2019 at 10:03 am #492978
    spiezz
    Participant

    Brad,

    Thank you this is exactly what I need. I don't see this code in the functions file - where should I look for it?

    Thanks SO much
    Karen

    August 14, 2019 at 11:08 pm #492992
    Brad Dalton
    Participant

    Here's the code you can modify https://wpsites.net/web-design/remove-genesis-breadcrumbs-conditionally/


    Tutorials for StudioPress Themes.

    August 15, 2019 at 12:39 pm #492998
    spiezz
    Participant

    Hi Brad,

    I added code and altered to your specs- going into genesis settings and turning on all breadcrumbs and it works great.

    Word for posterity- I had made .breadcrumbs{display:none;} in my css and had to change to {display:block;} for this solution to work correctly.

    Thanks so much!

    K

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add Breadcrumbs ONLY in search results page’ is closed to new 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