Hi @vikastyagi87, thanks for reaching WCMp Support
Please don’t share the access to the in WordPress forum, as this can be misused. So, we would request you to delete this access.
Regarding the logout issue, it seems like this is theme conflict issue. Just to be sure, please switch to some default theme like Twenty Sixteens and check again.
Keep us posted also.
Hello,
I added below code in functions.php file
if(!defined(‘WCMP_UNLOAD_BOOTSTRAP_LIB’)){
define(‘WCMP_UNLOAD_BOOTSTRAP_LIB’, true);
}
now drop down login-user started work. But i didn’t understand this above code logic, can you please explain it i copy this code from here – https://wc-marketplace.com/support-forum/topic/frontend-dashboard-account-drop-down-not-showing-in-wcmp-3-1-3/
Thanks
-
This reply was modified 7 years, 2 months ago by
vikasTYAGI87.
@vikastyagi87, We have used Bootstrap framework for frontend. Some theme might be using bootstrap on their end, resulting in bootstraps conflict.
So, the above code to check if there is bootstrap in your theme, then remove our bootstrap.
Let us know if you have any further query.
Hello,
Dropdown login toggle option was working before once i added below code in current theme functions.php file –
if(!defined(‘WCMP_UNLOAD_BOOTSTRAP_LIB’)){
define(‘WCMP_UNLOAD_BOOTSTRAP_LIB’, true);
}
But now it stopped work now, i have seen you also included above script class-wcmp-library.php file.
But now i added below jQuery code –
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$(‘.dropdown-toggle’).dropdown();
});
</script>
Now dropdown login toggle start work again. But i have question is that possible load this script only vendor dashboard page?
Thanks
Vikas
-
This reply was modified 6 years, 11 months ago by
vikasTYAGI87.
@vikastyagi87, WCMp lets you load CSS for our dashboard only. However, we don’t have settings that will load script for dashboard only.
You can add this code in init by adding this checking if( is_vendor_dashboard() && is_user_logged_in() )