- This topic has 7 replies, 2 voices, and was last updated 13 years, 8 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 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 eMember › SEO Question
We are doing SEO on our website and we were asked to make any script that appears on homepage as external scripts. We have been able to do this with all Scripts except 1. Looking at the source code the last script seems to come from the “Forgot Password” on the Login Page. We are trying to locate this script so that we can make it external.
Can you please tell us where we find this script in the e-member plugin and will it cause problems to make it external?
Thanx for any help you can give us.
Best Regards
Monica
Its in a file called “emember_password_sender_box.php”. You can take the JQuery code and put it in a .js file and include it in the header or footer separately.
Hi Amin,
Thank you for your help as always.
Best Regards
Monica
I was looking at that .php file now and the part that is before the <script>, that part is on our homepage as well. Is this something that should be included in the .js file? Or does it have to stay in the HomePage source? Or will that part “disappear” when I make the script external?
Thanx Amin
Best Regards
Monica
what do you mean by “the part that is before the <script>”? Javasccript code must be inside a <script> block. You are only moving the Javascript code to an external file right?
Hi Amin,
Everything in the .php file you mentioned appear on our Home Page, including the part before the <script> </script> tags.
I have made the code between the <script> </script> external but the HTML code in this file is still displaying on the Home Page source code.
So my question is: Is there a way to get that html away from the home page, or does it have to stay there for the plugin to do it’s work? Just asking since that html comes from the Login Page and not the Home Page.
Best Regards
Monica
Leave the HTML code alone. Its for the forgot password reminder (it needs to be there).
Hi Amin,
Thanx, will leave it alone
Best Regards
Monica