<?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>Google translator specific placement of the button&#8230;. &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/feed/</link>
		<description></description>
		<lastBuildDate>Sun, 12 Oct 2025 01:44:57 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-307536</guid>
					<title><![CDATA[Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-307536</link>
					<pubDate>Sat, 20 Jun 2015 01:33:00 +0000</pubDate>
					<dc:creator>gybarra777</dc:creator>

					<description>
						<![CDATA[
						<p>I would like to put this button at a specific spot.  Can someone please help with what would be the easiest way to accomplish this.</p>
<p>I would like to put it on the navigation bar if possible:</p>
<p><a href="http://www.midtownfs.org/" rel="nofollow">http://www.midtownfs.org/</a></p>
<p><a href="http://midtownfs.org/extra_files/mfs7.png" rel="nofollow">http://midtownfs.org/extra_files/mfs7.png</a></p>
<p>Here is the script for the google translator I I want to add:</p>
<p>&lt;div id=&#8221;google_translate_element&#8221;&gt;&lt;/div&gt;&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function googleTranslateElementInit() {<br />
  new google.translate.TranslateElement({pageLanguage: &#8216;en&#8217;, includedLanguages: &#8216;es,ko,ru,vi,zh-TW&#8217;, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, &#8216;google_translate_element&#8217;);<br />
}<br />
&lt;/script&gt;&lt;script type=&#8221;text/javascript&#8221; src=&#8221;//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&#8221;&gt;&lt;/script&gt;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-307777</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-307777</link>
					<pubDate>Sat, 20 Jun 2015 10:34:39 +0000</pubDate>
					<dc:creator>Thai</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Thanks for writing in.</p>
<p><strong>#1]</strong> Because this requires a template change, I’d advise that you setup a <a href="https://community.theme.co//kb/how-to-setup-child-themes/" rel="nofollow">child theme</a>. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please add following PHP code below into <strong>functions.php</strong> locates in child theme&#8217;s folder:</p>
<pre><code>add_action(&#039;x_after_view_global__nav-primary&#039;, &#039;x_print_google_translate&#039;);
function x_print_google_translate(){
	?&gt;
	&lt;div id=&quot;google_translate_element&quot;&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: &quot;en&quot;, includedLanguages: &quot;es,ko,ru,vi,zh-TW&quot;, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, &quot;google_translate_element&quot;);
}
&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&quot;&gt;&lt;/script&gt;
	&lt;?php
}</code></pre>
<p><strong>#2]</strong> Try adding following CSS under <strong>Appearance &gt; Customize &gt; Custom &gt; CSS:</strong></p>
<pre><code>#google_translate_element {
  position: absolute;
  right: 0;
  top: 0;
}</code></pre>
<p>Hope it helps. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308142</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308142</link>
					<pubDate>Sun, 21 Jun 2015 03:10:32 +0000</pubDate>
					<dc:creator>gybarra777</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks so much for the help.  You can&#8217;t imagine how helpful it is to have this forum.</p>
<p>I did everything that was suggested and the google translator doesn&#8217;t show up.</p>
<p>Again really appreciate your help.  This is for <a href="http://www.midtownfs.org" rel="nofollow">http://www.midtownfs.org</a></p>
<p><a href="http://midtownfs.org/extra_files/mfs8.png" rel="nofollow">http://midtownfs.org/extra_files/mfs8.png</a></p>
<p><a href="http://midtownfs.org/extra_files/mfs9.png" rel="nofollow">http://midtownfs.org/extra_files/mfs9.png</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308305</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308305</link>
					<pubDate>Sun, 21 Jun 2015 08:31:18 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Copy <strong>_navbar.php</strong> file from <strong> framework -&gt; views -&gt; global</strong> and put it in the same path inside child theme, Now replace existing code with this:</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_NAVBAR.PHP
// -----------------------------------------------------------------------------
// Outputs the navbar.
// =============================================================================

$navbar_position = x_get_navbar_positioning();
$logo_nav_layout = x_get_logo_navigation_layout();
$is_one_page_nav = x_is_one_page_navigation();

?&gt;

&lt;?php if ( ( $navbar_position == &#039;static-top&#039; || $navbar_position == &#039;fixed-top&#039; || $is_one_page_nav ) &amp;&amp; $logo_nav_layout == &#039;stacked&#039; ) : ?&gt;

  &lt;div class=&quot;x-logobar&quot;&gt;
    &lt;div class=&quot;x-logobar-inner&quot;&gt;
      &lt;div class=&quot;x-container max width&quot;&gt;
        &lt;?php x_get_view( &#039;global&#039;, &#039;_brand&#039; ); ?&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class=&quot;x-navbar-wrap&quot;&gt;
    &lt;div class=&quot;&lt;?php x_navbar_class(); ?&gt;&quot;&gt;
      &lt;div class=&quot;x-navbar-inner&quot;&gt;
        &lt;div class=&quot;x-container max width&quot;&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_nav&#039;, &#039;primary&#039; ); ?&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php else : ?&gt;

  &lt;div class=&quot;x-navbar-wrap&quot;&gt;
    &lt;div class=&quot;&lt;?php x_navbar_class(); ?&gt;&quot;&gt;
      &lt;div class=&quot;x-navbar-inner&quot;&gt;
        &lt;div class=&quot;x-container max width&quot;&gt;
        &lt;div id=&quot;google_translate_element&quot;&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: &#039;en&#039;, includedLanguages: &#039;es,ko,ru,vi,zh-TW&#039;, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, &#039;google_translate_element&#039;);
}
&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&quot;&gt;&lt;/script&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_brand&#039; ); ?&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_nav&#039;, &#039;primary&#039; ); ?&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php endif; ?&gt;</code></pre>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308843</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308843</link>
					<pubDate>Mon, 22 Jun 2015 02:01:37 +0000</pubDate>
					<dc:creator>gybarra777</dc:creator>

					<description>
						<![CDATA[
						<p>I am embarrassed that I may be asking a very basic question &#8211; but I cannot find, &#8220;Copy _navbar.php file from framework -&gt; views -&gt; global&#8221;</p>
<p>Could you please be so kind to direct me a bit further?  I cannot find this file anywhere.</p>
<p>Again, your help is so greatly appreciated.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308960</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-308960</link>
					<pubDate>Mon, 22 Jun 2015 05:11:18 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Please connect through FTP account and under <strong>wp-content/themes/x/framework/views/global</strong>, find and copy <strong>_navbar.php</strong> file, and put this file under <strong>wp-content/themes/x-child/framework/views/global</strong>, now open this file and modify it as suggested.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309470</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309470</link>
					<pubDate>Mon, 22 Jun 2015 15:26:17 +0000</pubDate>
					<dc:creator>gybarra777</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you so much for the clarification.</p>
<p>I did all suggested and there are a couple of things that are not working correctly.  Please see pics&#8230;</p>
<p>Here is where the current placement of the google feature is and where I need it to be:</p>
<p><a href="http://midtownfs.org/extra_files/mfs10.png" rel="nofollow">http://midtownfs.org/extra_files/mfs10.png</a></p>
<p>here is what happens when I click the feature &#8211; it goes to the search function instead of the google function:</p>
<p><a href="http://midtownfs.org/extra_files/mfs11.png" rel="nofollow">http://midtownfs.org/extra_files/mfs11.png</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309557</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309557</link>
					<pubDate>Mon, 22 Jun 2015 17:22:32 +0000</pubDate>
					<dc:creator>Thai</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Please replace the previous custom CSS with this:</p>
<pre><code>#google_translate_element {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 999;
}
.masthead-inline .desktop .x-nav {
  margin-right: 160px;
}

@media (max-width: 979px){
  .x-btn-navbar {
    margin-top: 36px;
  }
  #google_translate_element {
    top: 0;
  }
}</code></pre>
<p><img decoding="async" src="http://i.imgur.com/gPYIhk2.png" alt="" /></p>
<p><img decoding="async" src="http://i.imgur.com/3xqXLlG.png" alt="" /></p>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309652</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309652</link>
					<pubDate>Mon, 22 Jun 2015 18:36:58 +0000</pubDate>
					<dc:creator>gybarra777</dc:creator>

					<description>
						<![CDATA[
						<p>You guys are incredible &#8211; Thanks so much!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309654</guid>
					<title><![CDATA[Reply To: Google translator specific placement of the button&#8230;.]]></title>
					<link>https://theme.co/archive/forums/topic/google-translator-specific-placement-of-the-button/#post-309654</link>
					<pubDate>Mon, 22 Jun 2015 18:43:40 +0000</pubDate>
					<dc:creator>Rupok</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.</p>
<p>Thanks for using X.</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

