- This topic has 4 replies, 2 voices, and was last updated 13 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 eStore Forum › Plugins Scripts loading only on required pages
I want to insert conditional tags on the scripts inside plugins WP-emember and ecommerce so that pages/posts which have no relation to these plugins do not unnecessarily get over burdened by these scripts.
can you suggest locations in your plugins whereever scripts are loaded in the head so that I can add conditional tags like is_home() or is_post(102), something like these.
I need your advice if this is the right way to optimize your plugins.
Thanks
For WP eStore check the following function
function wp_eStore_load_libraries()
For WP eMember check the following function:
function load_library()
I can see what you are trying to so thought I would mention this. You get good performance too if you combine all the JavaScripts. This page has more details:
https://support.tipsandtricks-hq.com/forums/topic/speed-suggestion
Off course! I use yslow plugin in mozilla.
Thanks Admin!!
I need a little more help. I have created a custom form on my site and named it wp_emember_loginForm, now when the user enters the right userid/password combination everything works fine.
But in case user enters the wrong combination I want the user to be redirected to the original login “page” (with the error message) where I have embedded the login form which does all the error checking.
Please suggest how to go about it.
You won’t be able to send the login error message across to the default eMember login widget. If you have a customized login form then I suggest you handle everything from there or simply redirect to the eMember’s login form and tell them to try it again there.