Hi there,
When duplicating and copying the content (a Page, for example) with WPML the Code Block’s HTML disappears. Have you encountered this issue?
Hi worldfuturecouncil,
Not sure what you mean by that, could you try to explain further and/or post screenshots of the issue please? Send us admin login details in private so that we can have a closer look.
Best regards,
Rikard
Hi Rikard, for for getting back to me. Sorry for the confusion, I’ll try to make it clearer, maybe a run through will help:
1. I created my pages and for some headings I used the Code Block element with my own css heading styles. http://martinfreire.com/wp-content/uploads/2016/02/Captura-de-pantalla-2016-02-17-a-las-10.32.28.png
2. Once those Pages were done I was ready to start with the translation of my whole website using WPML.
3. The first page I duplicated using WPML (clicking on the “+” sign on the Pages backend section). The duplicated page had the Code Block with my custom classes in. http://martinfreire.com/wp-content/uploads/2016/02/Captura-de-pantalla-2016-02-17-a-las-10.41.38.png
4. The code dissapeared (see attached images). http://martinfreire.com/wp-admin/post.php?post=740&action=edit
Is this clearer? Let me know if it’s not and I’ll elaborate further.
Thanks!!
Hi Ismael, thank you for getting back to me.
h_dept1 is a css class I created for certain elements. That’s the code that usually disappears.
Should I wrap it under <script> or something like that?
Thanks!
Hey!
If it’s a class attribute, you should add it inside a class attribute container. Example:
<div class="h_dept1">SOMETHING HERE</div>
http://www.w3schools.com/html/html_classes.asp
Regards,
Ismael