Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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, 10 months ago by Dase.
    #1070604

    Hey 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.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #1070647

    Here 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!

    #1071666

    Hi 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,
    Nikko

    #1071690

    Hi 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!

    #1072526

    Hi 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,
    Nikko

    #1072549

    Yes it appears under the products and categories but also above! I would like to remove it from the top…

    #1073658

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.