<?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>[Tweaking WordPress] Stop meta charset fetched from SQL everytime &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 14 Oct 2025 07:51:09 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181022</guid>
					<title><![CDATA[[Tweaking WordPress] Stop meta charset fetched from SQL everytime]]></title>
					<link>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181022</link>
					<pubDate>Mon, 12 Jan 2015 06:59:27 +0000</pubDate>
					<dc:creator>mrunal</dc:creator>

					<description>
						<![CDATA[
						<p>In every html file, the header has following opening line:</p>
<pre><code>&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
</code></pre>
<p>I suppose one of your PHP file fetches it using a code like this</p>
<pre><code>&lt;head&gt;
&lt;meta charset=&lt;?php bloginfo(&#039;charset&#039;); ?&gt;&quot; /&gt;
</code></pre>
<p>In my old theme, the developer had suggest a tweak so that instead of fetching this chartset info from  SQL data everytime it&#8217;d simply write it manually i.e.</p>
<pre><code>&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
</code></pre>
<p>My question:<br />
Where is such file located in x-theme installation<br />
How do I accomplish it?</p>
<p>PS:<br />
I am forced to such minor tweaks because stupid webhosting company (=godaddy) is not increasing my memory limit despite behind on the highest plan on managed wordpress, and I lack the expertise to run a VPS on my own.<br />
Hence trying to get maximum &#8220;mileage&#8221; with such tom-foolery.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181231</guid>
					<title><![CDATA[Reply To: [Tweaking WordPress] Stop meta charset fetched from SQL everytime]]></title>
					<link>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181231</link>
					<pubDate>Mon, 12 Jan 2015 13:49:07 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Thanks for writing in!</p>
<p>To achieve this, create file _header.php in wp-content/themes/{CHILD THEME DIRECTORY}/framework/views/global<br />
and copy the code below into that file.</p>
<pre><code>
&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_HEADER.PHP
// -----------------------------------------------------------------------------
// Declares the DOCTYPE for the site and include the &lt;head&gt;.
// =============================================================================

?&gt;

&lt;!DOCTYPE html&gt;
&lt;!--[if IE 9]&gt;&lt;html class=&quot;no-js ie9&quot; &lt;?php language_attributes(); ?&gt;&gt;&lt;![endif]--&gt;
&lt;!--[if gt IE 9]&gt;&lt;!--&gt;&lt;html class=&quot;no-js&quot; &lt;?php language_attributes(); ?&gt;&gt;&lt;!--&lt;![endif]--&gt;

&lt;head&gt;
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
  &lt;title&gt;&lt;?php wp_title(&#039;&#039;); ?&gt;&lt;/title&gt;
  &lt;link rel=&quot;profile&quot; href=&quot;http://gmpg.org/xfn/11&quot;&gt;
  &lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo( &#039;pingback_url&#039; ); ?&gt;&quot;&gt;
  &lt;?php wp_head(); ?&gt;
&lt;/head&gt;

&lt;body &lt;?php body_class(); ?&gt;&gt;

  &lt;?php do_action( &#039;x_before_site_begin&#039; ); ?&gt;

  &lt;div id=&quot;top&quot; class=&quot;site&quot;&gt;

  &lt;?php do_action( &#039;x_after_site_begin&#039; ); ?&gt;
</code></pre>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181446</guid>
					<title><![CDATA[Reply To: [Tweaking WordPress] Stop meta charset fetched from SQL everytime]]></title>
					<link>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181446</link>
					<pubDate>Mon, 12 Jan 2015 19:38:15 +0000</pubDate>
					<dc:creator>mrunal</dc:creator>

					<description>
						<![CDATA[
						<p>will there be any unforseen circumstances in putting this line<br />
<code>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;</code><br />
for example- my site uses responsive-adsense units. will there be any conflict with this &#8216;device-width&#8217; thing?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181758</guid>
					<title><![CDATA[Reply To: [Tweaking WordPress] Stop meta charset fetched from SQL everytime]]></title>
					<link>https://theme.co/archive/forums/topic/tweaking-wordpress-stop-meta-charset-fetched-from-sql-everytime/#post-181758</link>
					<pubDate>Tue, 13 Jan 2015 08:05:39 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>That line of code is already there by default in the theme.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

