Jump to content

Sub Categories Displaying out of alignment


Recommended Posts

Hello

I am new to Prestashop and really like it. At the moment I am just using the standard Prestashop theme whilst I get a feel for it, but have come across a problem that I have searched for the answer to but just cant find it.
I have created a subcategory that displays everything as it should, but I then want to create a subcategory of that subcategory if you see what I mean.

When I do this the layout doesn't quite display as it should. The text link of the subcategory starts after the image instead of below it, but not in each one. I have attached a screen shot to show what I mean. I have experimented with making the category name longer or shorter but that does not make a difference.

Is there a way to make all link titles start below the image rather than this slightly messy look, or maybe I shouldn't create such a deep subcategory

Thanks in Advance

42616_UOLMfliAjnDdkLJPSp40_t

Link to comment
Share on other sites

I have exactly the same problem with the subcategory pages all messed up with text all over the place (as in the posters original screenshot) Category photo with a word to its right and the rest of the line below the photo when it ought to all be below the photo.

Did anyone find a solution to this one please

Link to comment
Share on other sites

I have found through trial and error that this happens when there is a space in the category name. So when I set the category as PG Tips (space between PG and Tips) the text is displayed over two lines.
PGTips (no space between them) displays perfectly...
What causes that to occur as I really want to use PG Tips(space) as that's the brand name proper.

43548_lzcIrfnalaUNAYd6CLdA_t

43549_JF1NuSfm2BlvhoI8ajSh_t

Link to comment
Share on other sites

This thread gave me a clue how to fix.

http://www.prestashop.com/forums/viewthread/78239/

To fix, you need to add at


to category.tpl in your theme.

In category.tpl, look to line 73.

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">




{$subcategory.name|escape:'htmlall':'UTF-8'}


before the {$subcategory.name... add in




This will always force the words to be on a new line.

Link to comment
Share on other sites

  • 4 months later...

This thread gave me a clue how to fix.<br/><br/>http://www.prestashop.com/forums/viewthread/78239/<br/><br/>To fix, you need to add at


to category.tpl in your theme.<br/><br/>In category.tpl, look to line 73.<br/><br/>

<a >getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}"><br/><br/>
<br/><br/>{$subcategory.name|escape:'htmlall':'UTF-8'}</a><br/>

<br/>before the {$subcategory.name... add in


<br/><br/>This will always force the words to be on a new line.

 

Does anyone know what we need to add to fix this problem? it is not clear in this post.

 

thanks in advance, see you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...