• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

Add Google Translate to Joomla or WordPress

November 5, 2012 by Pat Fortino

  • From the Translation Languages list, select a language option. You can show all languages or select specific languages.
  • Select a display mode: Vertical, Horizontal, or Dropdown only.
  • Click Get Code. Google displays two code boxes. The first box contains the meta code; the second box contains the plugin code.
  • Add the Google meta code before the closing </head>in your template.Joomla: Open /templates/[your-template]/index.php and insert the meta code just before </head>.

    WordPress: Open /wp-content/themes/[your-theme]/header.php and insert the meta code just before </head>.
    If you are using a framework and you can’t access header.php directly, then insert the following code in /wp-content/themes/[your-theme]/functions.php:

    [php]add_action(‘wp_head’, ‘add_google_translate’);<br />function add_google_translate() {<br />echo ‘paste your google code here’;<br />}[/php]

    This code will add the Google Translate code between the head tags.

  • Add the Google plugin code to your sidebar or module.Joomla: From the Joomla Admin screen, go to Extensions > Module Manager, click New > Custom HTML, open the HTML code editor, paste the Google plugin code there, select a position for your module, and click Save.

    WordPress: From the WordPress admin screen, go to Appearance > Widgets and drag a Text widget into your sidebar, paste the Google plugin code there and click Save.

  • Test your site. You should see the Google Translate plugin in the location you placed it.

  • Pages: Page 1 Page 2

    Tagged With: Joomla, Website Design, WordPress, Comments are closed. If you have information to share, contact me here.

    Previous Post: « How to Install MAMP on a Mac
    Next Post: Joomla Release Schedule Update »

    Reader Interactions

    Comments

    1. Mark says

      January 13, 2013 at 6:36 pm

      WordPress instructions worked perfectly. Thanks!

    2. Jone says

      March 15, 2013 at 10:22 pm

      Nice ,,

      I Make This tutorial and google translation worked like a charm
      thanks

    3. Bob Thomson says

      April 11, 2013 at 10:49 am

      I’m not able to get to either or to insert the meta code. Is there another way to do this or are there more specific step-by-step instructions on how to get there for a noobie?

      • Pat Fortino says

        April 11, 2013 at 11:05 am

        because you are on wordpress.com, you cannot install any plugins unless they are approved by them. Here is a list of the plugins you can install: http://en.support.wordpress.com/plugins/. Google translate is not one of them. Best to move your site to your own hosting and then you can do whatever you want.

    4. Moni says

      July 2, 2013 at 8:51 am

      We are working on Joomla 3. Our problem is when we paste the Google plugin code in a HTML module, only the first line is saved, we don’t know why. We tried to deactivate the JCE editor but is the same.

      • Pat Fortino says

        July 2, 2013 at 10:50 am

        Go to Global Configuration > Text Filters and make sure Super Admin has a setting of “No Filtering”

        • Moni says

          July 2, 2013 at 1:02 pm

          I’ve checked it and it’s ok. Super Admin and Admin have “no filtering”.

          • Pat Fortino says

            July 2, 2013 at 1:07 pm

            You should also check all JCE settings to make sure JCE is not stripping out code. I have had no issues inserting google code to the JCE text editor.

            • Moni says

              July 2, 2013 at 11:49 pm

              I’ve checked them and I think they are correct. But I think the problem is another thing. I tried to work with another editor and without one, and the problem was allways the same. I don’t know if it is a problem of the Joomla version.
              Thanks for all.

    Related

    Primary Sidebar

    Blog Categories

    Call Today

    Get a Free Quote

    303-907-6133

    Subscribe to News

    News about WordPress, WooCommerce, & Technology

    What’s New

    • WPForms Not Sending Notifications
    • Add Terms and Conditions WooCommerce
    • Fix WordPress AMP Validation Errors
    • Use the Classic Editor with Gutenberg Block Editor
    • Add a Message at Top or Bottom of WooCommerce Checkout Page
    • How to Link to a PDF in WordPress

    Find Us On…

    • Facebook
    • LinkedIn
    • RSS

    Call 303-907-6133 Email

    © 2004–2023 · WriteNowDesign · Sitemap · Log in · Return to Top

     

    Loading Comments...