Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #880272

    Hi, I have some ad code on some of my pages for travelpayouts an affiliate program. I add their code to add a “popular route” widget. It all works well. However if I subsequently go in to edit anything on that page once more, their ad code becomes corrupted with some strange characters breaking the “currency” part of the text and rendering it broken. I have tried putting the code in the code box and in a text box, both with the same results on editing the page.

    Here is the “corrupted” code
    <script async src=”//www.travelpayouts.com/weedle/widget.js? marker=59082&host=hydra.aviasales.ru&locale=en¤cy=eur&destination=BCN&destination_name=Barcelona” charset=”UTF-8″></script>

    Here is the original

    <script async src=”//www.travelpayouts.com/weedle/widget.js?marker=59082&host=hydra.aviasales.ru&locale=en&currency=eur&destination=BCN&destination_name=Barcelona” charset=”UTF-8″></script>

    #881483

    Hey roamingk,

    Are you using the code block element to add the code? Could you post a link to where we can see the error? Please note that the theme unfortunately can’t be compatible with all third party code.

    Best regards,
    Rikard

    #881615

    Hi, The developer fixed it.

    I had used the text box and the code element. Both yielded the same result.

    Apparently it could be the theme or even the server setting for how it handles the currency code. So we moved the currency=eur& element to the start of the code and it doesn’t change it… just in case someone ever needs a solution.

    <script async src=”//www.travelpayouts.com/weedle/widget.js currency=eur&marker=59082&host=hydra.aviasales.ru&locale=enr&destination=BCN&destination_name=Barcelona” charset=”UTF-8″></script>

    #881707

    Hi roamingk,

    Glad you got it working for you! And thank you for sharing! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.