Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Aug 17, 2011, 02: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 03:16 AM.
  #2  
Old Aug 17, 2011, 03:56 AM
juggledad's Avatar
juggledad
 
22,716 posts · Mar 2009
OSX 10.10.1 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 04:20 AM.
  #3  
Old Aug 17, 2011, 05: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 03:15 AM
[SOLVED] Strange Issue - Search Box won't accept input. Steve41 Header configuration & styling 4 Jan 5, 2011 11:21 PM
How to change header image depending on language (using qTranslate) ? marsyg Header configuration & styling 5 Dec 27, 2010 08:58 AM
[SOLVED] !!! Site have changed own image and theme's setting don't affect to it. shus Plugins & Atahualpa 2 Jan 5, 2010 09:24 AM
Put the qTranslate language selector into the header or page menu DarrenNI Header configuration & styling 1 Jun 19, 2009 04:01 AM


All times are GMT -6. The time now is 12:14 PM.


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