Trim Titles Only On Some Pages

Question

I Need to Trim the h2.entry-title, including whitespace and special character Only On Homepage, Category Pages, and Tag Pages.

(eg. Gowland Remote Control Car – RC Cars Xmas Gifts)

I Need All Titles Like This

(Gowland Remote Control Car)

I need to trim all the characters after “-”

Please Help me with this.

Thanks

0
Vikral 5 months 2020-12-25T07:10:19-05:00 0 Answers 6 views 0

Leave an answer

Browse
Browse