• Resolved Daniel

    (@marketinggreenpaint)


    Hello,
    Hope you can help me with this.

    This page is mine but was developed by someone else. I want to add a Login/My Account & Logout/Register Button to the bar at the top of the website next to the green “Subscribe” Button.
    The content for that bar appears to be on the Theme Header (header.php), when I add this code to the header.php:
    <a class="xoo-el-login-tgr">Login</a>

    It does not show anything on the page. Am I doing something wrong?
    Help appreciated,

    Thank you,
    Daniel

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor xootixsupport

    (@xootixsupport)

    Hello @marketinggreenpaint

    There is no <a class="xoo-el-login-tgr">Login</a> anywhere on the page.
    Make sure you have added it in the correct template file.

    Thread Starter Daniel

    (@marketinggreenpaint)

    @xootixsupport Currently there isnt, since it was not doing anything I removed it.

    Should I add it again so you could check?

    Plugin Contributor xootixsupport

    (@xootixsupport)

    Yea

    Thread Starter Daniel

    (@marketinggreenpaint)

    @xootixsupport Sorry for the delay, having an issue with the hosting company. Later today will tell you when everything is set up so you can try assist me.

    Thread Starter Daniel

    (@marketinggreenpaint)

    @xootixsupport It is up and running, please take a look when you can.

    Thank you,
    Daniel Oliveira

    Thread Starter Daniel

    (@marketinggreenpaint)

    @xootixsupport I managed to figure out WHAT, but not WHERE was “hiding” my Login button.

    It was this css code

    .xoo-el-login-tgr, .xoo-el-reg-tgr, .xoo-el-lostpw-tgr {
        display: none!important;
    }

    I cant seem to find the page containing that code. Hope you can help me find it :S

    Thread Starter Daniel

    (@marketinggreenpaint)

    @xootixsupport
    I am sorry for the spam here, jesus, its been hectic around this.

    I found the page, class-xoo-el-frontend.php
    with this code

    //Hide popup trigger links , if user is logged in
       if( is_user_logged_in() ){
               $inline_style .= "
                  .xoo-el-login-tgr, .xoo-el-reg-tgr, .xoo-el-lostpw-tgr{
    	      display: none!important;
    }
    ";
    }

    Aparently, I was already loged in -.-
    How can I add the “My Account” and “Logout” link with code similiar to what I did with “Login” and “Register”?
    I know I could use the menu “menu” haha, see what I did there? But the website was made by someone else and I am not managing to make that work.

    Thank you in advance,
    Daniel Oliveira

    • This reply was modified 5 years, 1 month ago by Daniel.
    Thread Starter Daniel

    (@marketinggreenpaint)

    Any possible solution to this? @xootixsupport

    Plugin Contributor xootixsupport

    (@xootixsupport)

    Hello @marketinggreenpaint

    I am not sure what you’re asking for.
    If you want to create links to the my account & logout page.
    You can use shortcodes
    http://docs.xootix.com/easy-login-for-woocommerce/#shortcodes

    Thread Starter Daniel

    (@marketinggreenpaint)

    Thank you for the answer @xootixsupport
    Hello,

    Yes, that’s what I want, links to my account & logout page.
    BUT, can I use the shortcodes in HTML code and how? How do I add this “[xoo_el_action type=”login” change_to=”logout”]” in HTML? is it possible?
    Hope you can help me.

    Thank you once again!

    • This reply was modified 5 years ago by Daniel.
    Thread Starter Daniel

    (@marketinggreenpaint)

    @xootixsupport Managed to make it work with the following code:

    <?php echo do_shortcode('[xoo_el_action type="login" change_to="myaccount"]'); ?>
                        <?php echo do_shortcode('[xoo_el_action type="register" change_to="logout"]'); ?>

    Changed the code a bit, from “Login to Register” to “Login to My Account”, and from “Register to My Account” to “Register to Logout”. I think it suits the wording and positioning better.
    Thank you 😀 Good plugin! Just think you need a more detailed explanation on how to apply certain codes.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Adding Login/My Account and Register/logout buttons’ is closed to new replies.