This topic has 23 replies, 4 voices, and was last updated 7 years, 11 months ago ago by Stan Russell
Hello,
I am trying to configure the sign in LINK that is on the top bar to a specific page that i am trying to do with ultimate member plugin, how can i do that? How can i assign a specific page to the button?
I have the shortcodes that i want to display.
The page that i am trying to assign to the button is a Register/Login page based on the ultimate member shortcode, so when the customer logs in the button Changes to : Logout ( this is by default of the legenda theme)
Thanks
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
please help!!
Hello why isnt anyone replying ? This is urgent
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
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.
hellooo? Please dont make me regret this purchase. I have 2 simple problems that takes 3 days to reply
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.
Will this code work ? <?php wp_loginout( $redirect, $echo ); ?>
Also if i enable the child theme where should i edit this code so i dont lose it when i update?
Please help!!!!
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 ?
This is the 3rd day that i am talking on my own and nobody helps on this matter
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.
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.
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.
Really? You can’t disconnect the button from woocommerce and use a simple login/logout button in the same place??
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.
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
can you reply a bit fast? This is taking too long
The issue related to '‘Sign In link top bar’' has been successfully resolved, and the topic is now closed for further responses