Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Yoast Breadcrumbs

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

    Where do you add this code in SP7.1.4

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

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 3, 2013 at 7:43 am

    Wherever you want showing, im guessing _gallerpage.php

    shopperpress/template_shopperpress/_gallerpage.php

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

    Thank Mark,
    under what line?

  • Reese
    Reese
    Senior Member 260 points
    July 3, 2013 at 8:02 am

    Got it Mark Thanks

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 3, 2013 at 11:19 am

    :) np

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

    where do you put the code.

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

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 6, 2013 at 6:18 am

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

  • Brandon
    Brandon
    Titan 709 points
    July 7, 2013 at 4:21 am

    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

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 7, 2013 at 10:20 am

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

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

    I did not mean email.

    I meant if you can post me a link.

    I cannot seem to get this working.

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

    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

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

    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

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

    here is the file

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

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

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

    Just zip the file

Viewing 15 posts - 1 through 15 (of 35 total)