March 21, 2012 at 3:05 am #10574
I am new to WP and just installed Propulsion.
I’m trying to setup standard login/logout/register links in the sub nav at the top left corner of the site. Users should see “Login | Register” if they are not logged in and they should see “Logout” if they are logged in. I’ve searched everywhere and cannot see how to set this up.
Also, since we are on the topic of login and user registration, can you recommend any good WP plugins for these functions?
Thank you.March 22, 2012 at 12:10 am #68551
Unfortunately the wordpress menu manager doesnt allow to add login/logoout links to the menu. The only way of doing this is doing it by hand. If you want to go that route: I did it in the config-woocommerce/config.php file at line 194. Its a little more complicated but offers more flexibility.
Unfortunately I dont know any nice plugins for user registration, sorry for that :/April 3, 2012 at 5:25 pm #68552
Je reviens sur le sujet mais il serait interessant de nous expliquer en détail la marche à suivre pour avoir “connexion,deconnexion” comme sur la demo.
Je pense que cela interesserait beaucoup de personnes.
MerciApril 3, 2012 at 5:34 pm #68553
I posted a sample code snippet here: https://kriesi.at/support/topic/secondary-menu-behavior
PeterApril 3, 2012 at 7:49 pm #68554April 4, 2012 at 6:58 am #68555
Dons si je comprend bien il faut coller ce code dans la page “functions.php” c’est ce que j’ai fait mais rien ne se passe,peut etre que j’ai oublié quelque chose.April 5, 2012 at 11:09 pm #68556
Make sure you have a sub menu set up under the Menus manager and assigned with the drop down on the left of the menus.
DevinApril 6, 2012 at 10:43 am #68557
J’ai essaye de mettre le code dans “functions.php” j’ai une erreur de syntax
AaronApril 7, 2012 at 1:29 am #68558
I followed your advice and hand-rolled my login/logout/register submenu by modifying config-woocommerce/config.php file at line 194 as you suggested. This worked very well in my local dev environment. However, when I replicated the change to my hosted site it didn’t work. It is as if the change was never made.
I replicated the change from my local dev environment to my hosted site using the Duplicator plugin so I am pretty certain that the hosted site mirrors my local dev environment. I also confirmed that the config.php code is identical in both environments.
I have spent hours trying to figure this out but, for the life of me, I can’t see what is different between my environments and why it is not working in my hosted environment. I am hoping that you can help me troubleshoot this before I go completely mad!
I will email you my login details. Thank you.
MikeApril 7, 2012 at 2:07 am #68559
False alarm. Please ignore my previous post. I reposted the changes and everything worked as expected. Thanks again for your help with this.
MikeApril 7, 2012 at 2:33 am #68560
Pouvez-vous coller l’erreur syntax? Quand je regarde votre site tout marche comme espéré.
Je ne comprends pas bien ce que vous voulez faire. Pouvez-vous nous l’élaborer?
ChrisApril 7, 2012 at 11:40 am #68563
Please post the code again and use: http://pastebin.com/ this time.
PeterApril 7, 2012 at 4:26 pm #68564
Can you explain again please what to do because I did not understand what code must be insert and to what file and what to change.
AaronApril 10, 2012 at 2:08 pm #68565
You need to add that php code to the bottom of functions.php. It should then change your sub menu to have the desired effect.
DevinApril 10, 2012 at 5:08 pm #68566
I have placed the code at the end of file “function.php” but what do you mean “save submenu by editing config-woocommerce/config.php at line 194” I did not very well understood.
Really thank you for your support and help
AaronApril 11, 2012 at 4:55 pm #68568
You need to create a sub menu in your menus page for the code to effect it I believe.
DevinApril 13, 2012 at 6:55 am #68569
I have to create a sub menu page but how exactly?
And this submenu should be named what?
This is what I do not understand.
Thank you for your understanding
AaronApril 16, 2012 at 4:50 pm #68570
Under Appearance>Menus . Create a new menu, then in the drop down to the left in the box labeled “Theme Locations” select that menu for the Abundance Sub Menu.April 17, 2012 at 7:52 am #68571
Thank you very much Devin,
I created a sub menu and it works, but I do not understand what I must change to line 194 of file WooCommerce / config.php
AaronApril 17, 2012 at 2:28 pm #68572
The topic ‘Login/Logout/Register’ is closed to new replies.