Jump to content

space in <h1> tag in category


Recommended Posts

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

  • 11 months later...

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

×
×
  • Create New...