Yoast Breadcrumbs

Yoast Breadcrumbs

July 3, 2013
Reese Reese
  • Reese
    Reese
    Senior Member 260 points

    Where do you add this code in SP7.1.4

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

    July 3, 2013 at 7:39 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    Wherever you want showing, im guessing _gallerpage.php

    shopperpress/template_shopperpress/_gallerpage.php

    July 3, 2013 at 7:43 am
  • Reese
    Reese
    Senior Member 260 points

    Thank Mark,
    under what line?

    July 3, 2013 at 7:47 am
  • Reese
    Reese
    Senior Member 260 points

    Got it Mark Thanks

    July 3, 2013 at 8:02 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    :) np

    July 3, 2013 at 11:19 am
  • Brandon
    Brandon
    Titan 709 points

    where do you put the code.

    On what Line. I put the code at top and it does not work.

    July 6, 2013 at 1:07 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    It goes anywhere you want it o display, if its not displaying then you’ll need to consult with the plugin author.

    July 6, 2013 at 6:18 am
  • Brandon
    Brandon
    Titan 709 points

    It works perfect on all my WP Themes that is not PremiumPress.

    Anyone that has it working email me a link so I can see what it should look like and tips on which files I should insert the code into.

    thanks

    July 7, 2013 at 4:21 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    How can they email you? (no email added :))

    July 7, 2013 at 10:20 am
  • Brandon
    Brandon
    Titan 709 points

    I did not mean email.

    I meant if you can post me a link.

    I cannot seem to get this working.

    July 8, 2013 at 7:52 pm
  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points

    Try adding the following code to your child theme _functions.php file:

    
    function pp_add_yoast_breadcrumbs() {
    	if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>');} 
    }
    
    add_action('premiumpress_content_before','pp_add_yoast_breadcrumbs');

    Kind regards,

    Richard

    July 8, 2013 at 8:08 pm
  • Brandon
    Brandon
    Titan 709 points

    Richard what line should I put the code on.

    I am getting the below error.

    Parse error: syntax error, unexpected ‘;’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/ruthless/public_html/Store.CobraMotoRacing.com/wp-content/themes/shopperpress/themes/shopperpress-Cobra-Moto/_functions.php on line 110

    July 8, 2013 at 8:48 pm
  • Brandon
    Brandon
    Titan 709 points

    here is the file

    July 8, 2013 at 8:49 pm
  • Brandon
    Brandon
    Titan 709 points

    Well I guess system will not let me add the file.

    July 8, 2013 at 8:49 pm
  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points

    Just zip the file

    July 8, 2013 at 9:47 pm
Viewing 15 posts - 1 through 15 (of 35 total)

Didn't find what you were after?

Chat with us now

or contact our support team