• Resolved guix69

    (@guix69)


    Hello,

    In my theme I have a visual editor in which I add a text block with this code inside :
    [insert_php]echo do_shortcode('[GTranslate]');[/insert_php]

    Then I get an error because of some characters are replaced by their html entities. For example :
    /* <![CDATA[ */
    or
    if(sel[i].className=='goog-te-combo')

    Any idea?
    thank you
    G.

    https://www.ads-software.com/plugins/gtranslate/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    You better use [gtranslate] shortcode instead of [insert_php].

    If you are editing your template php files you can use <?php echo do_shortcode(‘[gtranslate]’); ?> instead.

    Thanks!

    Thread Starter guix69

    (@guix69)

    Hello edo.

    It was also what I would have liked to do but I couldn’t add a shortcode directly in the editor so I created a new widget section, added the GTranslate widget to this area and added this widget section to my page. Seems to work fine.

    Topic can be closed.

    Plugin Author edo888

    (@edo888)

    Good. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘illegal characters’ is closed to new replies.