Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter travisanderson99

    (@travisanderson99)

    That worked. Thank you, Maybellyne.

    Thread Starter travisanderson99

    (@travisanderson99)

    Hi, thanks for the quick reply. I believe the article you sent is what I was trying to accomplish. I was able to hook into do_robotstxt to modify the output for each subsite. However, Yoast still seems to inject their own content into the robots.txt file which is resulting in the current output:

    User-agent: *
    Allow: /wp-content/uploads/
    Disallow: /wp-content/plugins/
    Disallow: /wp-admin/
    https://staging.prephoops.com/sitemap_index.xml
    https://staging.prephoops.com/page-sitemap.xml
    # START YOAST BLOCK
    # ---------------------------
    User-agent: *
    Disallow:
    
    Sitemap: https://staging.prephoops.com/sitemap_index.xml
    # ---------------------------
    # END YOAST BLOCK

    Is it possible to remove everything between # START YOAST BLOCK and # END YOAST BLOCK?

    I used the wpseo_should_add_subdirectory_multisite_xml_sitemaps hook to remove the individual sitemaps, but ideally that entire block could be disabled.

    Travis

    Thread Starter travisanderson99

    (@travisanderson99)

    Hi Elvira,

    Thanks for the follow-up. I also contacted Stripe regarding this issue and they said the following:

    “Looking into the statement descriptor I can see we cannot completely override it. If you try to override the statement descriptor it will add what is in the dashboard first and then add the additional text. Since we cannot override it completely to not include what is in the dashboard I will submit feedback to our engineer team to see if we can get this updated for us.”

    So it seems that a fix for this issue would need to be implemented on their end rather than through the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)