• 0
Sign in to follow this  
Followers 0

Yoast SEO Breadcrumbs / Breadcrumbs


Question

Posted (edited) · Report post

Hi,

 

Working on the DMS and wanted to know if there is a way of adding functions via the on page editor, i.e. such as Yoast's SEO Breadcrumbs function:

 

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

 

Otherwise there is no simple way of either adding functions or code via the editor - which seems like a major weakness.

 

Trying to add it to http://twentyfirstdigital.co.uk

 

Thanks.

Edited by dougyhunt

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

I don't know if you can do it with the on page editor.

But working with a child theme in version 2 of Pagelines was very easy, and I don't think that part changed...

 

You can find the docs here: http://docs.pagelines.com/customize/base-child-theme

 

Via your FTP you can find the functions.php in your base child theme you have installed. I included Yoast breadcrumb before my postloop with the following action:

add_action('pagelines_before_postloop', 'breadcrumb');
function breadcrumb(){
?>
<?php if (is_front_page()) {
	echo '';
} else {
        if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<p id="breadcrumbs">','</p>');
       }
} ?>
<?php }

Hope this helps you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0