• Resolved visanchan

    (@visanchan)


    I can add a description to product categories in WooCommerce. My question is, how can I add a description to the default shop archive page?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ahir Hemant

    (@hemant-ahir)

    1. Use a Hook in functions.php (For Full Control)
      You can manually add a description using the woocommerce_archive_description hook.

    Example: Add Custom Description Above Products

    function ahirwp_custom_shop_description() {
    if (is_shop()) {
    echo '<div class="shop-description"><p>Welcome to our shop! Browse our amazing products.</p></div>';
    }
    }
    add_action('woocommerce_archive_description', 'ahirwp_custom_shop_description');

    Modify the text inside <p> to suit your needs.

    Thanks
    Ahir Hemant

    Mahfuzur Rahman

    (@mahfuzurwp)

    Hi @visanchan ,

    To add a description to the default shop archive page, it depends on the theme you’re using. Some themes provide an option to add a description directly through the theme settings.

    If you’re using a block-based theme like Twenty Twenty-Five, you can add a description by editing the “Product Catalog” template. Simply add a “Paragraph” block (or another block of your choice) to the template in the location where you want the description to appear.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there,

    As we haven’t had any updates, I’ll assume this is resolved and close the thread. Feel free to reconnect anytime.

    Your review would mean a lot: https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘about shop page’ is closed to new replies.