The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

HeadSpace2 SEO
Theme Switcher, Query Strings Throws it Off (1 post)

  1. Andrew S Freeman
    Posted 3 years ago #

    Hello John,

    I recently used the Theme Switching part of your plugin for a landing page for Google AdWords. Unfortunately, the query string at the end of the AdWords-generated URL made it so my alternate theme wouldn't display for the landing page.

    Changing line 45 of modules/page/theme.php from
    $url = str_replace( get_bloginfo( 'url' ), '', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
    $url = str_replace( get_bloginfo( 'url' ), '', 'http://' . $_SERVER['HTTP_HOST'] . strtok($_SERVER["REQUEST_URI"],'?') );
    Fixed the issue. I wish there was an easier way to open a pull request in Trac.

    Thanks for everything,
    Andrew Freeman


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HeadSpace2 SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Andrew S Freeman
  • This topic is not resolved
  • WordPress version: 3.5.1


No tags yet.