<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>How to remove query strings from font_awesome and foundation_social for caching? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/feed/</link>
		<description></description>
		<lastBuildDate>Thu, 16 Oct 2025 07:51:32 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113239</guid>
					<title><![CDATA[How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113239</link>
					<pubDate>Fri, 26 Sep 2014 15:52:22 +0000</pubDate>
					<dc:creator>meoptometry</dc:creator>

					<description>
						<![CDATA[
						<p>The following two resources are the only ones I have left that are not able to be cached. Please advise. </p>
<p><a href="http://www.meoptometry.com/wp-content/themes/x/framework/fonts/font_awesome/font-awesome.woff?v=4.0.3" rel="nofollow">http://www.meoptometry.com/wp-content/themes/x/framework/fonts/font_awesome/font-awesome.woff?v=4.0.3</a><br />
<a href="http://www.meoptometry.com/wp-content/themes/x/framework/fonts/foundation_social/foundation-social.woff?v=1.0" rel="nofollow">http://www.meoptometry.com/wp-content/themes/x/framework/fonts/foundation_social/foundation-social.woff?v=1.0</a></p>
<p>Thank you,<br />
meo<br />
<a href="http://www.meoptometry.com" rel="nofollow">http://www.meoptometry.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113305</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113305</link>
					<pubDate>Fri, 26 Sep 2014 17:49:49 +0000</pubDate>
					<dc:creator>Mrinal</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Meo, </p>
<p>I think the best way would be using a plugin: <a href="https://wordpress.org/plugins/remove-query-strings-from-static-resources/" rel="nofollow">https://wordpress.org/plugins/remove-query-strings-from-static-resources/</a> for removing query strings. And if you need live performance report in your site then you can consider to use this: <a href="https://wordpress.org/plugins/gtmetrix-for-wordpress/" rel="nofollow">https://wordpress.org/plugins/gtmetrix-for-wordpress/</a></p>
<p>Hope these helps, Cheers! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113352</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113352</link>
					<pubDate>Fri, 26 Sep 2014 19:12:54 +0000</pubDate>
					<dc:creator>meoptometry</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for the reply. There was some code i found to enter into the child themes functions.php, but that did not fix the issue. I am hesitant to use a plugin as the bulk the plugin would add to the site may slow the site more than necessary. Can i just find the files and remove the part of the name that includes the ?  such as ?v=4.0.3 for font awesome? Are there any drawbacks to doing that?</p>
<p>meo</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113401</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113401</link>
					<pubDate>Fri, 26 Sep 2014 20:25:53 +0000</pubDate>
					<dc:creator>Mrinal</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Meo, </p>
<p>If you remove the font-awesome, all icons of the site won&#8217;t show. They&#8217;ll show as square dot.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113416</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113416</link>
					<pubDate>Fri, 26 Sep 2014 20:40:35 +0000</pubDate>
					<dc:creator>Praxis Research</dc:creator>

					<description>
						<![CDATA[
						<p>I don&#8217;t think Meo intends to remove the font file. Just the query string.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113449</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113449</link>
					<pubDate>Fri, 26 Sep 2014 21:04:48 +0000</pubDate>
					<dc:creator>Mrinal</dc:creator>

					<description>
						<![CDATA[
						<p>HI There, </p>
<p>If you don&#8217;t want to use a plugin, try adding the following codes into funtions.php of your child theme: </p>
<pre><code>function _remove_script_version( $src ){
	$parts = explode( &#039;?&#039;, $src );
	return $parts[0];
}
add_filter( &#039;script_loader_src&#039;, &#039;_remove_script_version&#039;, 15, 1 );
add_filter( &#039;style_loader_src&#039;, &#039;_remove_script_version&#039;, 15, 1 );</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113615</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113615</link>
					<pubDate>Sat, 27 Sep 2014 06:21:30 +0000</pubDate>
					<dc:creator>meoptometry</dc:creator>

					<description>
						<![CDATA[
						<p>Unfortunately the above options (code in function.php and the mentioned plugins) did not work. The code in the last post actually removed the query string from google fonts&#8230;but that ended up breaking those. It doesn&#8217;t seem to touch font_awesome or foundation_social.<br />
When i tried to find the files in the theme folder.. they did not have the query strings in the file name so I could not remove them there either. </p>
<p>Anyone have any other tips/solutions on removing them from these two items?</p>
<p>Thanks,<br />
meo</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113710</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113710</link>
					<pubDate>Sat, 27 Sep 2014 13:27:51 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>the font awesome and foundation social is declared on a each CSS  based on the stack used that includes query strings. You could easily remove those query string directly from those CSS files but the thing is you must not edit anything inside X core file.</p>
<p>Can you try adding this Instead on your child theme style.css and see how it goes,</p>
<pre><code>@font-face {
    font-family: &#039;fontawesome&#039;;
    src: url(&quot;../x/framework/fonts/font_awesome/font-awesome.eot&quot;);
    src: url(&quot;../x/framework/fonts/font_awesome/font-awesome.eot&quot;) format(&quot;embedded-opentype&quot;),
    url(&quot;../x/framework/fonts/font_awesome/font-awesome.woff&quot;) format(&quot;woff&quot;),
    url(&quot;../x/framework/fonts/font_awesome/font-awesome.ttf&quot;) format(&quot;truetype&quot;),
    url(&quot;../x/framework/fonts/font_awesome/font-awesome.svg&quot;) format(&quot;svg&quot;);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family:&#039;foundationsocial&#039;;
  	src:url(&quot;../x/framework/fonts/foundation_social/foundation-social.eot&quot;);
  	src:url(&quot;../x/framework/fonts/foundation_social/foundation-social.eot&quot;) format(&quot;embedded-opentype&quot;),
    url(&quot;../x/framework/fonts/foundation_social/foundation-social.woff&quot;) format(&quot;woff&quot;),
    url(&quot;../x/framework/fonts/foundation_social/foundation-social.ttf&quot;) format(&quot;truetype&quot;),
    url(&quot;../x/framework/fonts/foundation_social/foundation-social.svg&quot;) format(&quot;svg&quot;);
  	font-weight:normal;font-style:normal;
}</code></pre>
<p>Let me know how it works.</p>
<p>Cheers</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113843</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113843</link>
					<pubDate>Sat, 27 Sep 2014 19:56:03 +0000</pubDate>
					<dc:creator>meoptometry</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you. The latest solution seems to affect it&#8230;but now it seems to load them twice&#8230;.once still with the query string and once without. </p>
<p>See the following report for more info.</p>
<p><a href="http://tools.pingdom.com/fpt/#!/dBWM66/http://www.meoptometry.com" rel="nofollow">http://tools.pingdom.com/fpt/#!/dBWM66/http://www.meoptometry.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113943</guid>
					<title><![CDATA[Reply To: How to remove query strings from font_awesome and foundation_social for caching?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-remove-query-strings-from-font_awesome-and-foundation_social-for-caching/#post-113943</link>
					<pubDate>Sun, 28 Sep 2014 01:55:02 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>How about this,</p>
<p>Remove the css given above, then go to <strong>/wp-content/themes/x/framework/css/site/stacks/</strong> using your filemanager or ftp.</p>
<p>Duplicate all css file that you can find in there and renamed your new copies of css file into <strong>alternative-{STACK}.css</strong> (eg. <strong>alternative-ethos.css</strong>, <strong>alternative-integrity-light.css</strong>, etc. ). </p>
<p>Edit all <strong>alternative-{STACK}.css</strong> css files and remove all occurrences of these strings.</p>
<p>1. ?#fontawesome&amp;v=4.0.3<br />
2. ?#iefix&amp;v=1.0<br />
3. ?v=4.0.3<br />
4. ?v=1.0</p>
<p>Save your new css files and upload them where your original stacks css files are.</p>
<p>Now add this code at your child theme&#8217;s functions.php</p>
<pre><code>if ( ! function_exists( &#039;x_enqueue_site_styles&#039; ) ) :
  function x_enqueue_site_styles() {

    //
    // Stack data.
    //

    $stack  = x_get_stack();
    $design = x_get_option( &#039;x_integrity_design&#039;, &#039;light&#039; );

    if ( $stack == &#039;integrity&#039; &amp;&amp; $design == &#039;light&#039; ) {
      $ext = &#039;-light&#039;;
    } elseif ( $stack == &#039;integrity&#039; &amp;&amp; $design == &#039;dark&#039; ) {
      $ext = &#039;-dark&#039;;
    } else {
      $ext = &#039;&#039;;
    }

    //
    // Font data.
    //

    $body_font_family_query         = x_get_font_family_query( x_get_option( &#039;x_body_font_family&#039;, &#039;Lato&#039; ) );
    $body_font_weight_and_style     = x_get_option( &#039;x_body_font_weight&#039;, &#039;400&#039; );
    $body_font_weight               = x_get_font_weight( $body_font_weight_and_style );

    $headings_font_family_query     = x_get_font_family_query( x_get_option( &#039;x_headings_font_family&#039;, &#039;Lato&#039; ) );
    $headings_font_weight_and_style = x_get_option( &#039;x_headings_font_weight&#039;, &#039;400&#039; );
    $headings_font_weight           = x_get_font_weight( $headings_font_weight_and_style );

    $logo_font_family_query         = x_get_font_family_query( x_get_option( &#039;x_logo_font_family&#039;, &#039;Lato&#039; ) );
    $logo_font_weight_and_style     = x_get_option( &#039;x_logo_font_weight&#039;, &#039;400&#039; );
    $logo_font_weight               = x_get_font_weight( $logo_font_weight_and_style );

    $navbar_font_family_query       = x_get_font_family_query( x_get_option( &#039;x_navbar_font_family&#039;, &#039;Lato&#039; ) );
    $navbar_font_weight_and_style   = x_get_option( &#039;x_navbar_font_weight&#039;, &#039;400&#039; );
    $navbar_font_weight             = x_get_font_weight( $navbar_font_weight_and_style );

    $subsets                        = &#039;latin,latin-ext&#039;;

    if ( x_get_option( &#039;x_custom_font_subsets&#039;, 0 ) == 1 ) {
      if ( x_get_option( &#039;x_custom_font_subset_cyrillic&#039;, 0 ) == 1   ) { $subsets .= &#039;,cyrillic,cyrillic-ext&#039;; }
      if ( x_get_option( &#039;x_custom_font_subset_greek&#039;, 0 ) == 1      ) { $subsets .= &#039;,greek,greek-ext&#039;; }
      if ( x_get_option( &#039;x_custom_font_subset_vietnamese&#039;, 0 ) == 1 ) { $subsets .= &#039;,vietnamese&#039;; }
    }

    $custom_font_args   = array(
      &#039;family&#039; =&gt; $body_font_family_query . &#039;:&#039; . $body_font_weight . &#039;,&#039; . $body_font_weight . &#039;italic,700,700italic|&#039; . $navbar_font_family_query . &#039;:&#039; . $navbar_font_weight_and_style . &#039;|&#039; . $headings_font_family_query . &#039;:&#039; . $headings_font_weight_and_style . &#039;|&#039; . $logo_font_family_query . &#039;:&#039; . $logo_font_weight_and_style,
      &#039;subset&#039; =&gt; $subsets
    );

    $standard_font_args = array(
      &#039;family&#039; =&gt; &#039;Lato:&#039; . $body_font_weight . &#039;,&#039; . $body_font_weight . &#039;italic,&#039; . $navbar_font_weight_and_style . &#039;,&#039; . $headings_font_weight_and_style . &#039;,&#039; . $logo_font_weight_and_style . &#039;,700,700italic&#039;,
      &#039;subset&#039; =&gt; $subsets
    );

    $get_custom_font_family   = add_query_arg( $custom_font_args,   &#039;//fonts.googleapis.com/css&#039; );
    $get_standard_font_family = add_query_arg( $standard_font_args, &#039;//fonts.googleapis.com/css&#039; );

    //
    // Enqueue styles.
    //

    if ( is_child_theme() ) {
      wp_enqueue_style( &#039;x-stack&#039;, get_stylesheet_directory_uri() . &#039;/style.css&#039;, NULL, NULL, &#039;all&#039; );
    } else {
      wp_enqueue_style( &#039;x-stack&#039;, get_stylesheet_directory_uri() . &#039;/framework/css/site/stacks/alternative-&#039; . $stack . $ext . &#039;.css&#039;, NULL, NULL, &#039;all&#039; );
    }

    if ( is_rtl() ) {
      wp_enqueue_style( &#039;x-rtl&#039;, X_TEMPLATE_URL . &#039;/framework/css/site/rtl/&#039; . $stack . &#039;.css&#039;, NULL, NULL, &#039;all&#039; );
    }

    if ( X_BBPRESS_IS_ACTIVE ) {
      if ( x_is_bbpress() ) {
        wp_deregister_style( &#039;buttons&#039; );
      }
      wp_deregister_style( &#039;bbp-default&#039; );
      wp_enqueue_style( &#039;x-bbpress&#039;, X_TEMPLATE_URL . &#039;/framework/css/site/bbpress/&#039; . $stack . $ext . &#039;.css&#039;, NULL, NULL, &#039;all&#039; );
    }

    if ( X_BUDDYPRESS_IS_ACTIVE ) {
      wp_deregister_style( &#039;bp-legacy-css&#039; );
      wp_deregister_style( &#039;bp-admin-bar&#039; );
      wp_enqueue_style( &#039;x-buddypress&#039;, X_TEMPLATE_URL . &#039;/framework/css/site/buddypress/&#039; . $stack . $ext . &#039;.css&#039;, NULL, NULL, &#039;all&#039; );
    }

    if ( X_WOOCOMMERCE_IS_ACTIVE ) {
      wp_deregister_style( &#039;woocommerce-layout&#039; );
      wp_deregister_style( &#039;woocommerce-general&#039; );
      wp_deregister_style( &#039;woocommerce-smallscreen&#039; );
      wp_enqueue_style( &#039;x-woocommerce&#039;, X_TEMPLATE_URL . &#039;/framework/css/site/woocommerce/&#039; . $stack . $ext . &#039;.css&#039;, NULL, NULL, &#039;all&#039; );
    }

    if ( X_GRAVITY_FORMS_IS_ACTIVE ) {
      wp_enqueue_style( &#039;x-gravity-forms&#039;, X_TEMPLATE_URL . &#039;/framework/css/site/gravity_forms/&#039; . $stack . $ext . &#039;.css&#039;, NULL, NULL, &#039;all&#039; );
    }

    if ( X_CONTACT_FORM_7_IS_ACTIVE ) {
      wp_deregister_style( &#039;contact-form-7&#039; );
    }

    if ( x_get_option( &#039;x_custom_fonts&#039;, 0 ) == 1 ) {
      wp_enqueue_style( &#039;x-font-custom&#039;, $get_custom_font_family, NULL, NULL, &#039;all&#039; );
    } else {
      wp_enqueue_style( &#039;x-font-standard&#039;, $get_standard_font_family, NULL, NULL, &#039;all&#039; );
    }

  }
endif;

add_action( &#039;wp_enqueue_scripts&#039;, &#039;x_enqueue_site_styles&#039; );</code></pre>
<p>Last, edit your child theme&#8217;s style.css and find the line similar to this.</p>
<p><code>@import url( &#039;../x/framework/css/site/stacks/{STACK}.css&#039; );</code></p>
<p>And change its name into :</p>
<p><code>@import url( &#039;../x/framework/css/site/stacks/alternative-{STACK}.css&#039; );</code></p>
<p>Eg.</p>
<p><code>@import url( &#039;../x/framework/css/site/stacks/alternative-ethos.css&#039; );</code></p>
<p>These will be permanent since the new css files have new name and won&#8217;t be ovewritten by X theme update. Unless child theme is deleted. ( Same instruction can be applied to different child theme ). </p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

