WordPress Title for WooCommerce

Inside my header.php file I have: <h1 style="margin-top:10px;"><?php echo wp_title(""); ?></h1>
this works 99% of the time.

In woocommerce, titles appear like this: "PRODUCT CATEGORIES MY CATEGORY".  I just want "MY CATEGORY".

Any ideas on where I change that?

I can't seem to find the right search term to use to get an answer.  (i've learned how to remove titles all together...)

Thanks for your help!
LVL 1
slightlyoffAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

William NettmannPHP Web DeveloperCommented:
Hi,

wp_title() is about to be deprecated in 4.4, due in a few weeks, so it may make sense to not use it any more.

It appears there will be a new filter, "document_title_parts", which sounds like what you want.

More info:

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slightlyoffAuthor Commented:
Thanks for your response. I wasn't able to get document_title_parts to work - but I was able to get it working.  Sorry for the delay in responding - I was waiting for more responses and didn't get any - and forgot about it.

I appreciate the help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hardware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.