Skip to:
Content
Pages
Categories
Search
Top
Bottom

{RESOLVED} Where Do I Add Yoast SEO Loop Code?

  • @hiresphereadmin

    Member

    Hi guys,

    I just installed Yoast SEO and during the set-up it says that unless you’re using certain themes, you’ll need to add a piece of code to your loop, but it doesn’t say where your loop is or what line to put it on. My site is now live and I can’t afford for it to crash right now, so I don’t want to play too much with the code at this point.

    All I need to know is where the loop needs to be placed in Buddypress default (that’s the theme I’m using)?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • @djpaul

    Keymaster

    What code? Can you point to documentation?

    @hiresphereadmin

    Member

    “Lastly, this feature does not automatically add itself unless you are using Hybrid, Thesis, or Thematic. For other themes, you will have to add the following code in your loop”:

    `<?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb(‘

    ‘);
    } ?>`

    @hiresphereadmin

    Member

    “Installation of WordPress Breadcrumbs” from http://yoast.com/wordpress/breadcrumbs/

    01.Download the plugin
    02.Unzip the package and upload the file to your WordPress installation’s plugins folder
    03.Enable the plugin
    04.Adjust any settings you want under Settings -> Breadcrumbs
    05.Add the following code to your theme’s template(s):

    `<?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb(‘

    ‘);
    } ?>`

    Again……where in my buddypress default template? They don’t say……..

    @hiresphereadmin

    Member

    Anyone?

    @mercime

    Participant

    http://yoast.com/articles/wordpress-seo/#bread-crumbs

    If you created a child theme of bp-default, copy over two files from bp-default theme into your child theme folder:
    https://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-themes/bp-default/single.php (add after line 10)
    https://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-themes/bp-default/page.php (add after line 10)

    @hiresphereadmin

    Member

    I didn’t create a child theme

    @hiresphereadmin

    Member

    “Go into your _ php and approximately _ lines down, on line _, paste the breadcrumbs code and click update file.”

    Thanks!

    @hiresphereadmin

    Member

    For anyone else who may need this info:

    Go into your index.php (Main Index Template) and paste the Yoast SEO breadcrumbs code under line 16 (`

    `).

    All together it will look like this:

    `

    <?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb(‘

    ‘);
    } ?>’

    `

    ect, ect, ect……….

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘{RESOLVED} Where Do I Add Yoast SEO Loop Code?’ is closed to new replies.
Skip to toolbar