- This topic has 1 reply, 2 voices, and was last updated 11 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › WP Affiliate Ads Code Lost Focus When Clicked
Tagged: ads code, avada theme, WP Affiliate
Hello,
My client has this WordPress website [http://miwarecorp.com/affiliate-area/] where the affiliate plugin is integrated as a SHORTCODE embedded in a WordPress page.
The problem is when the affiliate goes to the ADS menu option and click on the ads code, it disappear. It’s like when the ads code text area gets the focus or receives the mouse click the code is hidden.
I tried using Firebug to check the CSS, I found out that it inherited the theme CSS styling. What can we do to get around this behavior.
The WordPress site uses Avada theme from theme-fusion.com. If you want to check the described behavior above to investigate further, below are my affiliate login info.
To login:
user: slkmclaren
pass: 212730
Please advise,
Reymund Jugalbot
Hi Reymund, Looks like this theme is clearing the content of a textarea when someone clicks on it (onclick). This is a very bad practice to apply this globally to all textarea elements. The theme developer probably wanted to do this on your comment form but didn’t target the code for the comment form only. So now any textarea on your site will have that effect which is bad. This is something your theme developer needs to fix in the theme unfortunately.
Alternatively, use option 1 of affiliate area which won’t be affected by your theme’s code:
http://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315