Jump to content

themeconfigurator hook home images alignment


Recommended Posts

I'm not familiar with that theme, so it's hard to help. I was able to fix your issue in Firebug by adding style="clear:left" to the fourth image.

 

It appears there's a module in that theme that adds <div class="htmlcontent_home"> and the code within it to the homepage. Find that module, edit it's TPL file and look for the {foreach} tag that displays those images. Make sure that tag has a name such as name="images", then add a line like the following inside the <li> tag:

{if $smarty.foreach.images.iteration % 3 == 1} style="clear: left"{/if}

If done correctly, this will cause style="clear:left" to be added to the first image of each row, which will cause them to line up properly.

  • Like 1
Link to comment
Share on other sites

Thanks Rocky! That solution is right, now all images are aligned correctly.

The file to edit is /modules/themeconfigurator/views/templates/hook/hook.tpl

For me the right code (near row 34) is the next:

<li class="htmlcontent-item-{$smarty.foreach.items.iteration|escape:'htmlall':'UTF-8'} col-xs-4" {if $smarty.foreach.items.iteration % 3 == 1} style="clear: left"{/if}>

my collection name is "items" (do not forget the double = for comparison in %3)

 

Thank you so much!

Edited by LucianoNapoli (see edit history)
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...