PHP Code for Yoast Breadcrumbs

We get asked by clients as a feature to ensure that breadcrumbs are part of the UX/UI on the new website build and the one thing which isn’t common knowledge is how to add it to the wordpress theme’s php. As Yoast is the number one plugin for Search Engine Optimisation on WordPress, we do not build a website without it installed.

<?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
} ?>

The above code can be copied and inserted into your theme’s header files (if that’s where you would like to display it)

Tweak Yoast Breadcrumbs

Don’t forget to customise the styling of the Yoast Breadcrumb under the plugin’s settings section: Yoast > Search Appearance > Breadcrumbs

If coding isn’t for you, adding a shortcode will work the same but depending on the theme structure you may need to add it to all the pages one by one.

Home / News / PHP Code for Yoast Breadcrumbs

 

we caboodle - full service agency team

Ready to Start?

we are driven by the challenge, SEO performance, UX/UI issues or printing, and branding. contact us today for a free quotation or advice.

if you are looking for a new full services agency to help boost your business then please contact us and lets build something great, together!

let's
talk

    Name*

    Email*

    Telephone


    full service agency, we caboodle

    we are a full-service agency for start-ups, business rebrands, and everything in between. eCommerce Experts in Cutting-edge Design & Development Technologies - Worldwide accreditation from leading digital platform providers including Shopify, WordPress & Magento.

    full service agency Manchester

    Studio 13
    Woolden Road
    Manchester


    full service agency London

    71-75 Shelton Street
    Covent Garden
    London


    Copyright 2022 we caboodle Ltd - full service website and digital Agency | 13127888 Registered in England and Wales | Privacy Policy