• Hello,

    I ll go right to the point: how can I move the product category description below all of the products?
    I wish to optimize my pages for SEO and apparently I need at least 500 words for this.
    P.S: I am no good with css, html, etc so please explain it to me in layman terms.

    Thank you!

    • This topic was modified 2 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey,

    I am not able to fully understand your requirements. Are you trying to say that you want to move current categoy description section below the pagination number on the category page?

    and if yes then how is it going to help in SEO?

    Thread Starter invitatiifrumoase

    (@invitatiifrumoase)

    Hey,
    I am gonna rephrase my issue:

    Under the page title “Invita?ii de nunt?” is written the category description: “Invita?ii Frumoase v? ofer? o larg? gam? de invita?ii nunt?, luand ?n calcul toate aspectele importante. Toate aceste invita?ii pot fi folosite ?i ca invita?ii pentru cununia civil?. De asemenea, putem tip?ri orice model de text pe orice model de invita?ie.”

    I wish to add 500+ words to that description but if I do this, my clients will need to scroll down alot to reach the products.
    For this reason I wish to move that description to the bottom of the page (under the products).

    In this way, I will meet Google requirements for SEO (500+ words or whatever) and I will not annoy my clients with some pointless text.

    You can try this code to move the category description position.

    remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
    add_action( 'woocommerce_after_main_content', 'woocommerce_taxonomy_archive_description', 5 );

    You’ll have to add this code into your child theme functions.php file, if you don’t have child theme then you can add in your main theme functions.php file.

    Note: Don’t edit any php file using WordPress theme editor option, Make sure you edit files using FTP client and take the file backup before making any changes.

    Thread Starter invitatiifrumoase

    (@invitatiifrumoase)

    Allright, I will do so.

    Before that: this code applies only to category product pages, right?

    Second: where should I paste this code? at the beginning of the file or on the last rows?

    Sorry for bothering you with so many questions.. but all I know about html, css, etc is to add a google tag manager code..

    This code will be applied for product categories, product tags pages, the main shop page description won’t be affected by this code.

    You need to add the code at the bottom of file.

    Note: When you page the code, make sure the single quote are normal, sometimes when you copy paste the things quotes get changes and you’ll get error on site, so double check for quotes.

    Thread Starter invitatiifrumoase

    (@invitatiifrumoase)

    I’am back!

    It worked flawlessly.

    Thank you very much!!!!

    Good to know.

    Hi,
    When adding the above-mentioned code, the Description is shown on the Both sides of Products the top and bottom Both

    Hello, I’m having the same issue as the OP, but when I added this code at the end of the functions.php file it throws a critical error and the site doesn’t load. I double checked the quotes and they looked correct. Here’s what the end of my file looks like:
    remove_action( ‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 );
    add_action( ‘woocommerce_after_main_content’, ‘woocommerce_taxonomy_archive_description’, 5 );
    });
    }

    I then removed this part “});” and left it like so, and the site starting loading normally, but the text description within the product categories remained unchanged:
    remove_action( ‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 );
    add_action( ‘woocommerce_after_main_content’, ‘woocommerce_taxonomy_archive_description’, 5 );
    }

    Please let me know if I’m doing it wrong. I’m a newbie so would appreciate any layman explanation.

    Thanks!

    FYI – I figured it out!!

    Instead of adding that string at the end of the functions.php file, I added it as a code snippet, and it actually worked like a charm!!!
    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Woocommerce – product category page – moving the text below the products’ is closed to new replies.