Putting Wording below Product displays on Shop Page

Hello can any help me please?

On Sydney Pro’s Shop Page- I am trying to have the products be displayed as the first thing on the page with the text below instead.

Thank you for any assistance

Hello there,

You can use this PHP code:

    add_action('woocommerce_after_shop_loop', 'sydney_pro_child_text_below_products', 70);
    function sydney_pro_child_text_below_products() {

    	$text = 'Your text goes here';
    	echo $text;

    } 

To apply it to your site, add it to your child theme’s functions.php file. Or you can use a functionality plugin like Code Snippets.

Regards,
Kharis

Thank You so much!!!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis

I’m sorry to disturb you about this again, but the color of the text wording is grey when I use this code. Can you say how I can put it to black?

Thanks again

Hello there,

Remove the code I’ve suggested and use this one instead:

    add_action('woocommerce_after_shop_loop', 'sydney_pro_child_text_below_products', 70);
    function sydney_pro_child_text_below_products() {

      $text  = '<div class="after-shop-content">';
      $text .= 'Your text goes here';
      $text .= '</div>';

      echo $text;

    }  

Update.

Then go to Appearance > Customize > Additional CSS from dashboard; and add this CSS code:

    .after-shop-content {
      color: #000;
    } 

Regards,
Kharis

I just did this and it worked. Thank you once again, Kharis.

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis