I need to add a text block above the items on the Shop page in Woocommerce.
I tried going to that page, clicking on the Edit with Bakery Builder, and added the text block and saved, but it’s not showing up at all on the Shop page. How to add this? thanks
Copy archive-product.php into your …/entrada-child/woocommerce folder
Find this code around line 76 and extra codes you can see below.
Then open Shop page in admin and add text
<main id="main">
<div class="content-block content-sub">
<!-- content block with boxed article add Title, Descr to shop page-->
<div class="inner-main common-spacing container page-content-inner">
<header class="woocommerce-products-header">
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
<h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1>
<?php endif; ?>
<?php
/**
* Hook: woocommerce_archive_description.
*
* @hooked woocommerce_taxonomy_archive_description - 10
* @hooked woocommerce_product_archive_description - 10
*/
do_action( 'woocommerce_archive_description' );
?>
</header>
</div>
<!-- content block with boxed article add Title, Descr to shop page-->
<div class="container">
which code specifically do I enter after line 76?
Can you please help with more detailed instructions? my client has been waiting a long time just to get one line of text above the shop page items. The instructions given above were vague.
thanks for your help
Hello Karen,
The shop page of woocommerce uses the plugins template, rather than the themes template, and they don’t have this field to add extra text on the woocommerce template. Also, when the plugin is updated, you will lose them, unless you have customized the plugins template in your child theme.
So, what @panograph has kindly offered above is a way to customize the plugin file via child theme, and it is for advanced users. If you are unable to follow the instructions there, I would recommend using the theme/plugin customization services via Envato Studio or the likes.
Thank you
ok thanks I appreciate your help.