From a3aa532060443061d5a30b1502bc3377e3584db5 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 19 Jan 2018 12:45:26 -0500 Subject: [PATCH] Breaking frontpage category names on ( character. This is necessary because wordpress strips out br tags one tries to put in the category names (unlike with appearance>menus). --- sections/front-page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sections/front-page.php b/sections/front-page.php index d749f22..d5d2094 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -61,7 +61,8 @@
' . $product_category->name . ''; + $cat_name = str_replace("(","
(",$product_category->name); + echo '

' . $cat_name . '

'; $args = array( 'posts_per_page' => -1, 'tax_query' => array( -- 2.17.1