Home › Forums › Community Forum › Login Pop Up.
This topic contains 8 replies, has 3 voices. Last updated by Deyson Ortiz 4 years, 9 months ago.
Topic Author | Topic |
---|---|
Posted: Tuesday Mar 27th, 2012 at 1:09 pm #9251 | |
|
|
Hello, I was wondering if anyone here could help me. I would like to add a Login Pop Up module when you click on the log-in button in the navigation bar. Here is my website: http://www.motion-master-templates.com Thank you :) |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Tuesday Mar 27th, 2012 at 3:58 pm #9278 | |
![]() |
|
Hi Deyson, You may want to look into using the Pro Login Widget, which can also be called dynamically using PHP: Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP) If you want a JavaScript popup to appear when the Login menu item is clicked, you’d need to create that part yourself and then include the s2Member Pro Login Widget. |
|
Posted: Tuesday Mar 27th, 2012 at 4:04 pm #9280 | |
|
|
Can you point me in the right direction on how to add that action to the login menu myself. I am already using the widget at the bottom of my site. But would like the pop up from the navigation bar. Thank you :)
|
|
Posted: Friday Mar 30th, 2012 at 1:09 pm #9590 | |
![]() |
|
Hi Deyson, You’ll need to use JavaScript to create the popup when the menu item is clicked and then call the Pro login widget dynamically as described here: Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP). As per our support policy, we are unable to assist with custom coding (please see s2Member® » Support Policy » Outside Scope). |
|
Posted: Friday Mar 30th, 2012 at 1:21 pm #9591 | |
|
|
Ok, can you point me in the best direction to find how to do this? Thank you :) |
|
Posted: Friday Mar 30th, 2012 at 11:25 pm #9629 | |
|
|
Hi, NOTE: The Pro Login Widget is only available to s2member Pro Hope this help: 1- Add this to the your template header (header.php):
2- Add this to where you want to show the menu button
You can optimize it the way you want. add the style to your style sheet and add the second JavaScript to a separate file and call it like this [example]
Now, since you want to add it to your menu I would remove the
instead:
and add your menu custom style like this:
Hop this help Sam
|
|
Posted: Saturday Mar 31st, 2012 at 12:03 pm #9664 | |
|
|
Hello Dr Byte ad thank you. :) First off before I get started I had a few questions: – Where in the Header should I put the first code? I am using a child theme so I would place it on the child theme’s header.php. I just need to know if it needs to be in the start of the header or end or does it matter? – Would I put the second code also in the header.php ? Thank you very much for you time, please pardon my ignorance, I am still learning. Have a wonderful day! |
|
Posted: Sunday Apr 1st, 2012 at 12:48 am #9687 | |
|
|
Hi, the first part which goes into the theme header.php is broken into 3 codes. To make it easier for you to edit and add later on: Create a new folder under WordPress installation directory: http://yoursite.com/login-popup/ create 2 more folders under that: call the first js and the second css http://yoursite.com/login-popup/js/ Make sure all these folders have 755 or 777 permission now, open your theme header.php and add this after the
add the below
and
Download both files here: http://soft-data.s3.amazonaws.com/login-popup.zip So it will look like this:
The second code goes anywhere you want in the theme. Since you want to use it in the menu bar, it might be in the herder.php too. or you can use it as is in your sidebar. |
|
Posted: Monday Apr 2nd, 2012 at 9:57 am #9762 | |
|
|
Hello DrByte, Thank you for taking the time to help me. I have a question, where exactly should I place the second code inside of the header? I have 2 navigation bars, one that logged out user see which has the “log in” button right after “contact” : http://motion-master-templates.com/ And I have an second navigation in which there is no log-in button, since they are already logged in. So the end result I would want log-out users to be able to click on the “log-in” button in the navigation bar: http://motion-master-templates.com/ and the log-in window pops up. Thank you :) Have an awesome day! |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.