brandvz
February 15, 2023, 6:03am
1
is any way to change the url for the login button?
For example: I need the “Login button” go to “https://domain.com/auth ” because i’m using a third party
brandvz
February 15, 2023, 6:34am
2
you can do this changing the ( #user_login_modal " ) for your URL
<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
if ( is_user_logged_in() ) :
?>
<a href="<?php echo esc_url( hivepress()->router->get_url( 'user_account_page' ) ); ?>" class="hp-menu__item hp-menu__item--user-account hp-link">
<i class="hp-icon fas fa-user"></i>
<span><?php echo esc_html( hivepress()->request->get_user()->get_username() ); ?></span>
<?php if ( hivepress()->request->get_context( 'notice_count' ) ) : ?>
<small><?php echo esc_html( hivepress()->request->get_context( 'notice_count' ) ); ?></small>
<?php endif; ?>
</a>
<?php elseif ( get_option( 'hp_user_enable_registration', true ) ) : ?>
<a href="#user_login_modal" class="hp-menu__item hp-menu__item--user-login hp-link">
<i class="hp-icon fas fa-sign-in-alt"></i>
<span><?php esc_html_e( 'Sign In', 'hivepress' ); ?></span>
</a>
<?php
endif;
andrii
February 15, 2023, 7:40am
3
Hi,
Unfortunately, there’s no such feature, it would require a custom implementation.
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY .
system
Closed
March 17, 2023, 7:41am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.