WordPress.org

Forums

WordPress SEO by Yoast
[resolved] Disable The XSL Stylesheet In Sitemaps? (4 posts)

  1. Aahan Krish
    Member
    Posted 2 years ago #

    Hi Joost,

    As you know, I am trying to have all static the content delivered from a different domain. For that I am using this in my wp-config.php:

    define( 'WP_CONTENT_URL', 'http://example.com/wp-content' );

    The problem is, this causes my sitemaps to go blank — the possible reason being the XSL sitemap stylesheet is being served from a different domain.

    For this reason, I would like to "remove" the stylesheet in all my sitemaps, normall sitemaps and News sitemap.

    I am not good with PHP (beginner), so it would be very helpful if you can help me with the function to add in my functions.php to disable the stylesheet from being referenced in sitemaps.

    PS: I hope this is fine by you, as it also removes your credit.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    It's a bad idea :) the credit is not what i'm worried about, but you're not "solving" the issue. Why not just use a CDN plugin or something like w3 total cache?

  3. Aahan Krish
    Member
    Posted 2 years ago #

    I better do that. I've been avoiding that thought so far, not any longer. Thanks :)

  4. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Good luck! Closing as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic