Author Bios showing up in woocommerce product descriptions

Hello,

I recently added code from a previous post about adding the author to the bottom of posts automatically. It worked perfectly until I realized that it added it to woocommerce product descriptions as well. Is there a way to alter the code below to keep the author bios to only actual posts?

Hello @jgreenberg,

Thanks for asking. :slight_smile:

You have the option to add following CSS under Pro > Theme Options > CSS to hide author box in product page:

.single-product .x-author-box {
    display: none !important;
}

Please note that custom CSS and PHP solutions falls outside the scope of support we offer. I shared above CSS and PHP codes to help you get started. Please note that in case of any issues, we wonโ€™t be able to provide support for the same.

That being said I have used CSS to hide Author info in product page. If you would like to explore and learn CSS then please take a look at following resources:

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Thank you for your help. This worked perfectly. I do appreciate your patience in this matter as I am new to CSS and am very appreciative of the support on Apex. It is superb!

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.