-
AuthorPosts
-
February 22, 2019 at 2:19 pm #1070336
Hi,
I’m trying to get the code for my functions.php file to move Move Category Description Under the Products.This is the code I’m using, which duplicates the description under the products but doesn’t remove the one above. It also shows pagination after the duplicated description, that desappears after changing the page.
// move category description
add_action(‘init’, ‘woocommerce_mod’);
function woocommerce_mod() {
remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_taxonomy_archive_description’, 11 );
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_taxonomy_archive_description’, 5 );
}- This topic was modified 5 years, 9 months ago by Dase.
February 23, 2019 at 7:19 am #1070604Hey Marc,
I just tested this code and it works fine on my end:
// move category description add_action('init', 'woocommerce_mod'); function woocommerce_mod() { remove_action( 'woocommerce_before_shop_loop', 'woocommerce_taxonomy_archive_description', 11 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 5 ); }
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
NikkoFebruary 23, 2019 at 10:57 am #1070647Here it is,
I also can’t Edit functions.php from WordPress even I am admin and have permissions (my hosting provider checked this) so I’m working via FTP of with my Hosting Files Management Platform.
Any ideas about why?Thank you!
February 26, 2019 at 8:24 am #1071666Hi dasemarc,
Thanks for giving us admin acccess.
Appearance > Editor isn’t available on your end, so I can’t check it but I think the issue might be some plugin conflict.
Can you try to disable all other plugins except for woocommerce, flush out the cache first then deactivate the caching plugin.
If it works fine then try to enable the plugins one by one to know which is causing the issue.Best regards,
NikkoFebruary 26, 2019 at 10:02 am #1071690Hi Nikko, I’ve disabled almost all plugins but can’t see it working properly. Now Appearance > Editor is available, could you check it again?
Thank you so much!
February 28, 2019 at 7:55 am #1072526Hi dasemarc,
Thanks for giving us admin access.
I have checked it again and it seems to be working, screenshot in private content.
I have put a link of one of your product category page where the hook works.Best regards,
NikkoFebruary 28, 2019 at 9:12 am #1072549Yes it appears under the products and categories but also above! I would like to remove it from the top…
March 2, 2019 at 6:18 pm #1073658Hi dasemarc,
I see, please try to add this css code in Quick CSS (located in Enfold > General Styling):
#top.tax-product_cat #av_product_description { display: none; }
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.