• Resolved Troy Chaplin

    (@areziaal)


    I have several sites that are installed in a separate directory. In the past, the first part of the breadcrumb for the homepage functioned fine, but with a more recent version the home text now links to the installation directory instead of the blog homepage.

    I don’t see anything in the plugin settings that have change, or that could be changed to fix this problem. I am using the basic function for loading the plugin, no additional customization, so it reads as the following in my theme files:

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

    Has anyone else come across this problem already, or does anyone have any suggestions on what this issue could be?

    Thanks

    https://www.ads-software.com/extend/plugins/wordpress-seo/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Troy Chaplin

    (@areziaal)

    Ok, I’ve found where this problem is coming from. In class-breadcrumbs.php on line 73 the URL is set to get_site_url, which would get the path to where WordPress is installed.

    I tested changing this to get_blogingo(‘url’) instead, and it fixed these issues.

    I would not recommend that anyone edit this file, I will reach out to Joost and let him know, he may have other reason this is coded that way, and there may be a better solution to fixing the issue.

    replace it to get_home_url() will solve it too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Home breadcrumb link is incorrect’ is closed to new replies.