Nicolas Antoine
Forum Replies Created
-
AuthorPosts
-
Thank you Kor, I just had a look.
Issue is solved.
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Thank you Naveen for the feedback, I will try with that.
Hello Naveen,
I have recover this piece of code which includes the woocommerce shopping cart icon in the header :
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { $count = WC()->cart->cart_contents_count; ?>cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php if ( $count > 0 ) { ?> <span class="cart-contents-count"><?php echo esc_html( $count ); ?></span> <?php } ?><?php
I place it in the Directory Starter HMTL (header) and it is working well. Now to prevent this piece of code to disappear when Theme will update, I would like to move the function into a PHP Snippet.
function my_icon_in_header() { ... } add_action( 'directory_starter_header', 'my_icon_in_header' );
Do Directory Starter header has a hook like do_action( ‘directory_starter_header’ ); ?
Hello all,
I wanted to let you know that we also experienced this issue, both on desktop and mobile whatever the browser is.
The snippet provided by Kiran solved the issue.Thanks for the great support.
Hello Naveen,
Thank you for this hint. I found the issue, it was caused by the plugin Protect WP-Admin.
I deactivate it and now it is working fine.
Thank you for your support. Case closed 🙂
Hello Alex, so I found the time to check if the issue was coming from this plugin. But apparently it is not…
Do you have another idea ?
Ok I think I found the plugin which is causing that.
Apparently it is coming from WC Marketplace.
This reply has been marked as private.Hello Alex,
I am not using a specific plugin for login purpose. But indeed I have plugins installed.
Hello Alex,
1 Thanks Alex.
I modified the *.po in >wp-content>themes>supreme-directory>languages.
It works like a charm2. Ok. I have no idea how difficult it is to make it myself. So I will wait the next revision. Keep me informed.
Hello Kiran, thank you for your support. It is working properly, I just checked.
It could be that I would need to do that trick again for other places.
Could you explain step-by-step the process you follow to make it work ?
Nico
-
AuthorPosts