Title: CSS classes not encoding properly
Last modified: August 21, 2016

---

# CSS classes not encoding properly

 *  Resolved [jplew](https://wordpress.org/support/users/jplew/)
 * (@jplew)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/css-classes-not-encoding-properly/)
 * In my default English version of the post, my div is rendered like so:
    `<section
   id="section-3">`
 * In the Russian translation, it looks like this: `
    `<section id="%d0%b3%d0%b0%
   d1%80%d0%bc%d0%be%d0%bd%d0%b8%d1%87%d0%bd%d0%b0%d1%8f-%d0%b6%d0%b8%d0%b7%d0%bd%
   d1%8c-%d0%b2-%d1%88%d1%80%d0%b8-%d0%bc%d0%b0%d1%8f%d0%bf%d1%83%d1%80-%d0%b4%d1%
   85%d0%b0%d0%bc%d0%b5">`
 * I think it’s trying to translate the CSS id’s. Can you please tell me how to 
   avoid this?
 * My permalinks are set to Post Name. I am using a static front page. There’s a
   screenshot of my settings here: [http://imageshack.com/a/img812/2566/cljs.png](http://imageshack.com/a/img812/2566/cljs.png)
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jplew](https://wordpress.org/support/users/jplew/)
 * (@jplew)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/css-classes-not-encoding-properly/#post-4775596)
 * ok, I figured it out. My problem is that my theme is using the page slug as a
   section ID. Polylang is translating the page slug, based on the title of the 
   translated post.
 * I know that I can manually change the slug on the edit page, but is there a way
   to prevent Polylang from translating the slug, by default?
 * Thanks! Great plug-in by the way.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/css-classes-not-encoding-properly/#post-4775645)
 * Polylang does not translate anything. WordPress creates the default slug based
   on what you entered as title. And it should work well with Russian characters.
   I believe that the problem is with your theme which for some reason does not 
   work well with Russian characters. Disable Polylang and I am quite sure that 
   you will have the same problem.
 *  Thread Starter [jplew](https://wordpress.org/support/users/jplew/)
 * (@jplew)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/css-classes-not-encoding-properly/#post-4775734)
 * you are right, sorry for the confusion on my part. I’ll talk to the theme developer.
   Thanks a lot.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSS classes not encoding properly’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jplew](https://wordpress.org/support/users/jplew/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/css-classes-not-encoding-properly/#post-4775734)
 * Status: resolved