From the course: WordPress Ecommerce: WooCommerce Plugins

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Customize product title

Customize product title

From the course: WordPress Ecommerce: WooCommerce Plugins

Start my 1-month free trial

Customize product title

- [Narrator] We've talked a lot about adding data to the page, but sometimes, you want to modify existing data like the product title. I tend to like themes with a lot of white space, so I'm only using three columns, but if you're using four columns or a theme that uses a lot less space, you might have issues where the titles of these products start to wrap and then some products are much longer than others and it messes up the vertical alignment. One of the cool things we can do is on the shop page, limit how long a product title can be and that way we can guarantee that they'll always fit on one line. Let's go to our code editor and go up a little bit and we're going to add a new filter. Add a filter, and then we're going to use a pretty well known WordPress filter. You've probably heard of it. It's called the title. It's one of the most commonly used filters. It's a filter that changes the title for any post and since Woo Commerce uses custom post types for products, we can use the…

Contents