skip to Main Content

Woocommerce , add_action conditionally

Precisely speaking, I want to change the place of breadcrumbs in category pages. so I check if it is_product_category() and then remove_action ('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 ) and add_action( 'woocommerce_before_shop_loop', 'woocommerce_breadcrumb', 15 ); but apparently it's not the solution, since it…

VIEW QUESTION

Remove links from WordPress menu items with specific class

I'm trying to remove the entire <a> tag from a menu item with a specific class. <ul> <li><a href="whatever">Whatever</li> <li class="remove-link"><a href="whatever">Whatever</a></li> <li><a href="whatever">Whatever</li> <ul> Would generate <ul> <li><a href="whatever">Whatever</li> <li class="remove-link"></li> <li><a href="whatever">Whatever</li> </ul> The code I am currently…

VIEW QUESTION

Elementor Function is not working properly in Document.php – WordPress

I am working on a site that suddenly has these error messages: [25-Aug-2022 16:23:38 UTC] PHP Notice: Undefined variable: post in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250 [25-Aug-2022 16:23:38 UTC] PHP Notice: Undefined property: ElementorCoreKitsDocumentsKit::$ in /public_html/wp-content/plugins/elementor/core/base/document.php on line 250 [25-Aug-2022 16:23:38…

VIEW QUESTION
Back To Top
Search