barrystein Posted September 16, 2014 Share Posted September 16, 2014 My category pages are pulling the category title and making them the <h1> tag. However they are inserting a space right at the beginning of the tag. For instance. http://www.homeschool-shelf.com/en/57-lifepac Category name is Lifepac h1 tag is forming as <h1> Lifepac</h1> How can I remove this space. I am looking at the categroy.tpl file and find this code: {if isset($category)} {if $category->id AND $category->active} <h1> {strip} {$category->name|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'htmlall':'UTF-8'} {/if} {/strip} </h1> Is there something there that is inserting the space? Running 1.5.4.1 default template Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2014 Share Posted September 16, 2014 there are some spaces, remove all "empty" lines <h1>{strip}{$category->name|escape:'htmlall':'UTF-8'}{if isset($categoryNameComplement)}{$categoryNameComplement|escape:'htmlall':'UTF-8'}{/if}{/strip}</h1> it will work like you want Link to comment Share on other sites More sharing options...
barrystein Posted September 16, 2014 Author Share Posted September 16, 2014 Vekia, Thank you.... works like a charm.... Link to comment Share on other sites More sharing options...
showtim3 Posted August 21, 2015 Share Posted August 21, 2015 That's fine thank you. ive noticed that the field "categoryNameComplement" exists in category template. But do you know how can we use it ? i think it can be very helpfull, but i don't see any field in my category form to use it. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts