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 1 month 0 Answers 6 views 0

Leave an answer