Title: Remove Query String
Last modified: August 26, 2017

---

# Remove Query String

 *  [artandscores](https://wordpress.org/support/users/artandscores/)
 * (@artandscores)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/remove-query-string/)
 * Hi,
 * pingdom tools says :
    ” Resources with a “?” in the URL are not cached by some
   proxy caching servers. Remove the query string and encode the parameters into
   the URL for the following resources: [https://artandscores.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.woff?ver=2.3.2](https://artandscores.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.woff?ver=2.3.2)
   MORE AT GOOGLE DEVELOPERS ”
 * Here is the answer: [https://perfmatters.io/docs/remove-query-strings-from-static-resources](https://perfmatters.io/docs/remove-query-strings-from-static-resources)
 * social-warfare/functions/frontend-output/header-meta-tags.php
 * Just put into lines 86 – 92:
 * // Echo it if we’re using the Admin Head Hook
    echo ‘<style>@font-face {font-
   family: “sw-icon-font”;src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot”);
   src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot?#iefix”) format(“embedded-
   opentype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.woff”) format(“woff”),
   url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.ttf”) format(“truetype”),url(“‘.
   SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.svg?#1445203416”) format(“svg”);font-weight:
   normal;font-style: normal;}</style>’; else :
 *  // Add it to our array if we’re using the froSntend Head Hook
    $info[‘html_output’].
   = PHP_EOL . ‘<style>@font-face {font-family: “sw-icon-font”;src:url(“‘ . SWP_PLUGIN_URL.‘/
   fonts/sw-icon-font.eot”);src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot?#
   iefix”) format(“embedded-opentype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-
   font.woff”) format(“woff”), url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.ttf”)
   format(“truetype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.svg?#1445203416”)
   format(“svg”);font-weight: normal;font-style: normal;}</style>’;
 * Regards.

The topic ‘Remove Query String’ is closed to new replies.

 * ![](https://ps.w.org/social-warfare/assets/icon-256x256.jpg?rev=2272097)
 * [Social Sharing Plugin - Social Warfare](https://wordpress.org/plugins/social-warfare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-warfare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-warfare/)
 * [Active Topics](https://wordpress.org/support/plugin/social-warfare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-warfare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-warfare/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [artandscores](https://wordpress.org/support/users/artandscores/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/remove-query-string/)
 * Status: not resolved