Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Javascript in the header don't accept site language


  #1  
Old Aug 17, 2011, 03:33 AM
Punc00
 
166 posts · Sep 2010
Czech Rep.
Using Atahualpa 3.6.7 on testsite http://hybrid007.ic.cz (it is in Czech) - I want to use external javascript file for displaying dates and birthdays. I inserted this code to ATO - Add HTML/ CSS inserts/ HTML Inserts: Header:

HTML Code:
<div id="svatek">
<script src="http://hybrid007.ic.cz/wp-content/themes/atahualpa367/js/svatek2.js" type="text/javascript" language="JavaScript"> </script>
</div>
Script is showing (in the right corner is text "Dnes je...") - but as you can see - Czech characters (as "á", "č" or "ř") are not displaying - I tried setting charset as utf-8 in the header.php and in other places, but none of them worked...
Really appreciate any help!

Last edited by Punc00; Aug 17, 2011 at 04:16 AM.
  #2  
Old Aug 17, 2011, 04:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
It looks like you don't have the 3.6.7 PATCHES applied, start by applying them all. Here are the links.
  • PATCH 367-01: Odd effects when 'CSS: Compress' = 'Yes'
  • PATCH 367-02 is incorporated in PATCH 367-04
  • PATCH 367-03: PHP errors when adding widget areas in index.php
  • PATCH 367-04: Hovering over a Post/Page title only shows "Permanent Link to"
  • PATCH 367-05: Site Title appended after the 'WordPress SEO by Yoast' title

this might also help http://www.meanfreepath.com/support/..._charsets.html
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Aug 17, 2011 at 05:20 AM.
  #3  
Old Aug 17, 2011, 06:47 AM
Punc00
 
166 posts · Sep 2010
Czech Rep.
Sorry and thanks juggledad! I didn't realized it! But even when patches were applied, issue remained.
Finally I got it - beginners mistake: when you want to save file from notepad as js file, remember to save it as UTF-8 (not as ANSI) and as a file-type: "all files" (not txt)!
So server and theme settings was alright, it was the js-file which caused this issue! Thanks juggledad again for your time!

Bookmarks

Tags
charset, javascript, language



Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrated a site now the Menus don't change CheezItMan Page & Category Menu Bars 1 Feb 8, 2011 04:15 AM
[SOLVED] Strange Issue - Search Box won't accept input. Steve41 Header configuration & styling 4 Jan 6, 2011 12:21 AM
How to change header image depending on language (using qTranslate) ? marsyg Header configuration & styling 5 Dec 27, 2010 09:58 AM
[SOLVED] !!! Site have changed own image and theme's setting don't affect to it. shus Plugins & Atahualpa 2 Jan 5, 2010 10:24 AM
Put the qTranslate language selector into the header or page menu DarrenNI Header configuration & styling 1 Jun 19, 2009 05:01 AM


All times are GMT -6. The time now is 01:03 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.