-
AuthorPosts
-
May 6, 2017 at 1:43 am #788680
So, I’m trying to insert code for an amazon affiliate product in a text box. When I save it initially it works fine. But if I save it a second time, the URL gets messed up. Specifically the part that says
marketplace=amazon®ion=US
gets replaced with
marketplace=amazon®ion=US
So basically the ampersand plus reg gets replaced as if it was ampersaid plus reg plus a semicolon. Any idea how to prevent this? I’ve tried replacing all the ampersand characters with
&
but it still gets messed up.I’ve included the affiliate code in the private content but I’m not 100% sure it’s going to save correctly since I think the forums are based on WordPress.
May 6, 2017 at 1:03 pm #788815Hey Kevin,
I have not seen this issue before, have you attempted the edit in different browser to see if it produces the same issue? Alternately, you could try many of the plugins available for this purpose like https://wordpress.org/plugins/amazon-link/
Best regards,
Jordan ShannonMay 8, 2017 at 9:58 pm #789874I’ve tested on a site using Twenty Sixteen and also on a site running Enfold on a page with and without the Avia Layout Builder enabled. This issue only happens when Avia Layout Builder is enabled. It happens in Chrome, Firefox and Internet Explorer on my Windows 10 computer.
Have you attempted to reproduce the issue? Can you look at this a little more closely and see what’s going on? I would rather not load the overhead of a plugin if I can avoid it.
Thanks!
May 8, 2017 at 10:32 pm #789881Hi,
Please provide log info so I can attempt to reproduce.
Best regards,
Jordan ShannonMay 8, 2017 at 11:48 pm #789905See private content below
May 9, 2017 at 12:32 am #789913Hi,
Thanks, I have asked some of my fellow team members look at this with me as well.
Best regards,
Jordan ShannonMay 9, 2017 at 1:51 pm #790248Hi,
We will look into it. In the meantime, i created a shortcode which you can use to add your iframe on your content. Please add the code in private content field into functions.php file in Appearance > Editor and use [custom_iframe] shortcode to display it
Best regards,
YigitMay 11, 2017 at 7:30 pm #791860Thanks, Yigit. We plan to post a few links but not many so doing custom shortcodes or using a plugin would be overkill. If you can investigate a workaround that will make the iframe code that would be preferable. If you need me to test anything or need more details, please let me know.
June 6, 2017 at 12:45 am #804241Hi there. Any news on this bug? Have you been able to reproduce it?
I appreciate the shortcode approach but it definitely won’t work in the longterm since we would have to create a shortcode for every affiliate product we wanted to use on the site. Thanks!
June 6, 2017 at 4:42 pm #804570Hi,
Unfortunately no permanent solution has been found for this particular issue yet. All bug fixes are listed on future updates, so hopefully this is something that can be addressed soon.
Best regards,
Jordan ShannonJune 6, 2017 at 9:52 pm #804706That’s a real shame. Do you have any idea where the issue gets introduced? If you can give me a nudge in the right direction, I’m happy to try to find a solution.
Thanks!
kcmJune 6, 2017 at 10:32 pm #804726Hi,
I don’t have that information from my position, but I will be happy to check on progress and let you know as it comes.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.