• 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

Modifying Breadcrumbs by adding links

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 › Modifying Breadcrumbs by adding links

This topic is: resolved

Tagged: breadcrumbs

  • This topic has 3 replies, 3 voices, and was last updated 8 years, 11 months ago by GokulDeepak.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 5, 2014 at 6:44 am #122913
    Toon61
    Member

    Hi all,

    I want to add some extra links to the breadcrumbs on my portfolio page.
    What I've tried so far looks like this:

    
    add_filter( 'genesis_breadcrumb_args', 'whd_prefix_breadcrumb' );
    function whd_prefix_breadcrumb( $args ) {
     	
     	$prev_link = '<div class="breadcrumb"><span class="whd-nav-previous alignleft"><a href="' . previous_post_link() . '">Vorige</a></span>';
     	$next_link = '<span class="whd-nav-next alignright"><a href="' . next_post_link() . '">Volgende</a></span></div>';
     	
    	$args['prefix'] = $prev_link;
    	$args['suffix'] = $next_link;
    	$args['labels']['prefix'] = '';
    	return $args; 
    }
    

    It generates the correct URL's to the previous and next posts, but the final URL's are not placed inside the breadcrumb DIV, but above and outside that DIV:

    
    <main class="content" role="main" itemprop="mainContentOfPage">
    	<a href="http://192.168.178.26/WHD_Test_04/portfolio/design-restaurant-de-herberg/" rel="prev">Vorige</a>
    	<a href="http://192.168.178.26/WHD_Test_04/portfolio/referit/" rel="next">Volgende</a>
    <div class="breadcrumb">
    	<span class="whd-nav-previous alignleft">
    		<a href="">Vorige</a>
    	</span>
    	<a href="http://192.168.178.26/WHD_Test_04/">Home</a>
    	"/"
    	<a href="http://192.168.178.26/WHD_Test_04/portfolio/">Portfolio</a>
    	"/ Mind Your Hair huisstijl"
    	<span class="whd-nav-next alignright">
    		<a href="">Volgende</a>
    	</span>
    </div>
    

    I can't figure out how to fix this.

    October 10, 2014 at 8:39 am #127355
    Susan
    Moderator

    As you posted this over a month ago, I hope you were able to get your issue resolved.

    If not, please check back in, and I will escalate.

    If your issue was resolved, please mark it as resolved, so it can be closed.

    Thanks!

    October 13, 2014 at 5:41 am #127650
    Toon61
    Member

    Hi Susan,

    Sorry for not replying to my own post.
    But I have solved this puzzle by my own (mainly because there was no feedback here on the forum).
    I'll mark it as resolved.

    December 5, 2016 at 5:24 am #197037
    GokulDeepak
    Member

    Please explain how have you solved. It will be helpful for me.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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