Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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.

    #68551

    Hey!

    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 :/

    #68552

    Bonjour Kriesi

    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.

    Merci

    #68553

    Hi!

    I posted a sample code snippet here: http://www.kriesi.at/support/topic/secondary-menu-behavior

    Best regards,

    Peter

    #68554

    Thank you Mec

    Aaron

    regards

    #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.

    #68556

    Hello,

    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.

    Regards,

    Devin

    #68557

    J’ai essaye de mettre le code dans “functions.php” j’ai une erreur de syntax

    Regards

    Aaron

    #68558

    Hi Kriesi,

    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.

    Mike

    #68559

    Hi Kriesi,

    False alarm. Please ignore my previous post. I reposted the changes and everything worked as expected. Thanks again for your help with this.

    Mike

    #68560

    Hey!

    Aaonwyse,

    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?

    Cheers,

    Chris

    #68563

    Hey!

    Please post the code again and use: http://pastebin.com/ this time.

    Best regards,

    Peter

    #68564

    Hi Dude,

    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.

    Best regards

    Aaron

    #68565

    Hi Aaron,

    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.

    Regards,

    Devin

    #68566

    Hi Devin

    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

    Regards

    Aaron

    #68568

    Hi Aaron,

    You need to create a sub menu in your menus page for the code to effect it I believe.

    Regards,

    Devin

    #68569

    Hi Devin,

    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

    Regards

    Aaron

    #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.

    2rgnzlz.png

    #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

    Regards

    Aaron

    #68572

    You don’t need to change anything there as far as I know. The directions Kriesi gave are not relevant for Peter’s code snippet.

    I’m glad it works for you now :)

Viewing 20 posts - 1 through 20 (of 20 total)

The topic ‘Login/Logout/Register’ is closed to new replies.