Home › Forums › Themes Support › Claue › Digits Plugin Compatibility
- This topic has 8 replies, 2 voices, and was last updated 4 years, 5 months ago by Harry.
-
AuthorPosts
-
-
July 22, 2020 at 3:02 pm #37695
Hi Harry,
Hope you are fine. 🙂
Harry, I am using Digits plugin for user’s sign up and log in.
Digits: https://codecanyon.net/item/digits-wordpress-mobile-number-signup-and-login/19801105This plugin has 3 options for using:
1. theme’s default
2. custom page
3. modal/popuptheir demo is here: https://digits.unitedover.com/demo/
I want to use modal/popup option.
for this I have two options:
1. add their shortcode instead of the my-account bottom in the header
2. add their class to the existing button.Documentation: https://help.unitedover.com/digits/kb/how-to-use-modal-login-form/
When I add their shortcode, I will have their string, not icon.
I want to use their defined class to keep the my-accoint icon.How can I have this?
Kind regards
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2020 at 3:06 pm #37696This reply has been marked as private.
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2020 at 5:20 pm #37699
Hi Rahim,
Please add below code to claue-child > functions.php
if ( ! function_exists( 'jas_claue_wc_my_account' ) ) { function jas_claue_wc_my_account() { $output = ''; if ( cs_get_option( 'header-my-account-icon' ) ) { $output .= '<div class="jas-my-account hidden-xs ts__05 pr">'; $output .= '<a class="cb chp db digits-login-modal" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '"><i class="pe-7s-user"></i></a>'; $output .= '<ul class="pa tc">'; if ( is_user_logged_in() ) { $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Dashboard', 'claue' ) . '</a></li>'; $output .= '<li><a class="db cg chp" href="' . esc_url( home_url( '/orders-tracking/' ) ) . '">' . esc_html__( 'Order Tracking', 'claue' ) . '</a></li>'; $output .= '<li><a class="db cg chp" href="' . esc_url( wp_logout_url() ) . '">' . esc_html__( 'Logout', 'claue' ) . '</a></li>'; } else { $output .= '<li><a class="db cg chp" href="' . esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) . '">' . esc_html__( 'Login / Register', 'claue' ) . '</a></li>'; } $output .= '</ul>'; $output .= '</div>'; } return apply_filters( 'jas_claue_wc_my_account', $output ); } }
and change href of user icon to login popup.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 22, 2020 at 5:42 pm #37700
Hi Harry,
I didn’t get the last sentence:
and change href of user icon to login popup.
I added the function and cleared the cache.
When I press the icon, the popup appears and is working as it should. but, when I press the login/register under the icon, it redirects to the login page of the Digits which was working before adding function. you check it yourself: Look.ir
It comes from the setting of the plugin which redirects to the Digits login page.
I need to have the same class for this string under the icon I think.Harry, The style of the theme, is adding a border to the fields of Digits: https://prnt.sc/tmhv0o
Is there any solution to hide it on the popup?
Regards
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2020 at 6:52 pm #37701This reply has been marked as private.
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2020 at 7:51 pm #37705
Hi Rahim,
The border add by plugin author.
1. Please add below code to change color
.digits_login_form .dig_ma-box span.bgdark { background-color: #ccc; }
2. Please ask plugin author for support
I see you can by plugin so please renew your support at https://themeforest.net/item/claue-clean-minimal-woocommerce-theme/18929281
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 22, 2020 at 8:02 pm #37706This reply has been marked as private.
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2020 at 8:48 pm #37707
Hi Harry,
Can you please help me on adding the
digits-login-modal
on this button: https://prnt.sc/tmltr8I really tried on my own, but I was not successful to solve it. 🙁
If you help me with this, I am done with Digits and it will be finished.
Thank you so much.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2020 at 9:59 pm #37708This reply has been marked as private.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.