Add SEO text just after the related product in woocommerce product page

SEO Text After Related Product Woocommerce

Here is another short tips using which you can add some sort of SEO text (basically to boost your sales) just after the Related Products in woocommerce single product page. Put the following code as per the direction I mentioned below. If you face any issue feel free to let me know in comments section

/*********** this code will go in your theme’s function.php ***********/

add_filter( 'woocommerce_after_single_product','opc' );
    function opc() {
		echo  '<div id="opct"> YOUR SEO TEXT WILL GO HERE </div>';
	}

/*********** this code will go in your theme’s custom css part ***********/

div#opct {
    font-style: italic!important;
    text-align: center;
 }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: