Sign In link top bar - by Sporbillis - on WordPress WooCommerce support

This topic has 23 replies, 4 voices, and was last updated 7 years, 11 months ago ago by Stan Russell

  • 22 Answers
    Avatar: Sporbillis
    Sporbillis
    Participant
    May 14, 2016 at 22:44

    After manny hours of trying to fix this i couldn’t manage to do it. So, i am trying to use my own sign in/ logout button that is not integrated with woocommerce with this widget

    <?php wp_loginout( $redirect, $echo ); ?>

    Although when i disable the toplinks but i keep active the top bar nothing appears.

    Please follow up and help me or configure it for me!
    Thanks

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 05:39

    please help!!

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 09:30

    Hello why isnt anyone replying ? This is urgent

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 16, 2016 at 10:09

    Hello,

    Sorry, but we don’t provide support for 3rd-party plugins.

    You can edit this section in the \wp-content\themes\legenda\framework\theme-functions.php file on line 1280.

    Regards,
    Robert Hall

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 10:38

    I dont want you to provide support for the 3rd party. I want you to explain how to modify the link on Sign/In on the top of the page. I want to create my own but when i disable the top links, i can’t use the top bar, it gets disabled too.
    Please explain in detail because i am not very good with coding.

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 11:32

    hellooo? Please dont make me regret this purchase. I have 2 simple problems that takes 3 days to reply

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 16, 2016 at 12:23

    Hello,

    Please edit the file wp-content/themes/legenda/framework/theme-functions.php in line 1300, edit the code
    <?php if(class_exists('Woocommerce')): ?><li class="login-link"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>"><?php _e( 'Sign In', ETHEME_DOMAIN ); ?></a></li><?php endif; ?>

    Replace the string <?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?> with your url of the page you need.

    So it will be like this:
    <?php if(class_exists('Woocommerce')): ?><li class="login-link"><a href="http://domain.com/some_page"><?php _e( 'Sign In', ETHEME_DOMAIN ); ?></a></li><?php endif; ?>

    Best regards,
    Jack Richardson.

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 12:29

    Will this code work ? <?php wp_loginout( $redirect, $echo ); ?>

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 12:30

    Also if i enable the child theme where should i edit this code so i dont lose it when i update?

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 16, 2016 at 22:26

    Please help!!!!

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 17, 2016 at 07:26

    Can you please elaborate with a step-by-step on how to add the code i have in my child theme? also will it work? Can you help ?

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 17, 2016 at 09:11

    This is the 3rd day that i am talking on my own and nobody helps on this matter

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 17, 2016 at 11:06

    Hello,

    To add the code to child theme you need copy whole function code:

    if(!function_exists('etheme_top_links')) {
        function etheme_top_links() {
            ?>
                <ul class="links">
                    <?php if ( is_user_logged_in() ) : ?>
                        <?php if(class_exists('Woocommerce')): ?> <li class="my-account-link"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>"><?php _e( 'Your Account', ETHEME_DOMAIN ); ?></a>
                        <div class="submenu-dropdown">
                            <?php  if ( has_nav_menu( 'account-menu' ) ) : ?>
                                <?php wp_nav_menu(array(
                                    'theme_location' => 'account-menu',
                                    'before' => '',
                                    'after' => '',
                                    'link_before' => '',
                                    'link_after' => '',
                                    'depth' => 4,
                                    'fallback_cb' => false
                                )); ?>
                            <?php else: ?>
    		                    <h4 class="a-center install-menu-info">Set your account menu in <em>Apperance > Menus</em></h4>
                            <?php endif; ?>
                        </div>
                    </li><?php endif; ?>
                            <li class="logout-link"><a href="<?php echo wp_logout_url(home_url()); ?>"><?php _e( 'Logout', ETHEME_DOMAIN ); ?></a></li>
                    <?php else : ?>
                        <?php
                            $reg_id = etheme_tpl2id('et-registration.php');
                            $reg_url = get_permalink($reg_id);
                        ?>
                        <?php if(class_exists('Woocommerce')): ?><li class="login-link"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>"><?php _e( 'Sign In', ETHEME_DOMAIN ); ?></a></li><?php endif; ?>
                        <?php if(!empty($reg_id)): ?><li class="register-link"><a href="<?php echo $reg_url; ?>"><?php _e( 'Register', ETHEME_DOMAIN ); ?></a></li><?php endif; ?>
                    <?php endif; ?>
                </ul>
            <?php
        }
    }

    and edit only this part:
    <?php if(class_exists('Woocommerce')): ?><li class="login-link"><a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>"><?php _e( 'Sign In', ETHEME_DOMAIN ); ?></a></li><?php endif; ?>

    as you were told in the previous post.

    Will this code work ?

    What is the purpose of this code and where you want to use it?

    Best regards,
    Jack Richardson.

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 17, 2016 at 11:27

    I want to make a Login/Logout link same as the one you have, but i dont want it connected to woocommerce, currently the login/logout link you have is connected to woocommerce, i dont it connected, i want it to go to a different page.

    Please reply asap.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 17, 2016 at 12:46

    Hello,

    This requires additional customization in php files which is beyond our basic support scope.
    We suggest you to hire a developer or order additional support via this form https://www.8theme.com/customization-services/ .

    Best regards,
    Jack Richardson.

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 17, 2016 at 12:50

    Really? You can’t disconnect the button from woocommerce and use a simple login/logout button in the same place??

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 17, 2016 at 13:17

    Hello,

    We don’t provide additional customizations for customers sites, it’s out of our basic support scope. As we told you can order additional support via the form https://www.8theme.com/customization-services/ .

    Thank you for understanding.

    Best regards,
    Jack Richardson.

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 17, 2016 at 15:12

    Okay let me ask the question differently. Can i disable the Top Links ( from the theme options ) without disabling the top bar? I want to add widgets to the top bar but when i disable the top links the top bar gets disabled too.

    Help at least for this one

    Avatar: Sporbillis
    Sporbillis
    Participant
    May 17, 2016 at 15:26

    can you reply a bit fast? This is taking too long

  • 1 2
    Viewing 20 results - 1 through 20 (of 23 total)

The issue related to '‘Sign In link top bar’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.