Jump to content

Editing TPL files to move/change div sections


Recommended Posts

I have figured out exactly what code I need to move to achieve what I want in terms of layout, but I cannot find where I should make the desired change? I am modifying the default theme, and want to move this code from blockuserinfo.tpl:

 

<p id="header_user_info"> Welcome <a class="login" href="http://tascperformance.dk/webshop/my-account">Log in</a></p>

 

But I can't find the file that contains the code where I want to move the above code to. Can someone please help?

 

From my browser Tools view I can see that I need the above code to go here:

 

 

<div class="grid_6 omega" id="header_right">

<p id="header_user_info"> Welcome <a class="login" href="http://tascperformance.dk/webshop/my-account">Log in</a></p>

<script type="text/javascript">/* <![CDATA[ */

$(document).ready(function(){$("#countries").mouseover(function(){$(this).addClass("countries_hover");$(".countries_ul").addClass("countries_ul_hover");});$("#countries").mouseout(function()

 

How do I see from the browser tool, where this code resides? I think I need the tpl file that contains the <div class="grid_6 omega" id="header_right"> statement... what file is this? I do not know enough to find it?

 

Can someone please help by pointing me in the right direction?

 

I have also attached a screenshot from the browser diagnostics where I have moved the code online... but this doesn't get it into Prestashop of course.

 

I would be most grateful.

Thanks.

post-187868-0-16563600-1330886199_thumb.png

Link to comment
Share on other sites

  • 2 weeks later...

Well, that didn't help much. No ideas anyone?

I'm stuck by not knowing how to find the correct file. Can someone assist by pointing me in the right direction? How do I identify which file I need to edit? I can fix it in the browser, but don't know how to find the file.

Link to comment
Share on other sites

Your first post isn't very clear, which maybe why no-one has replied.

 

You want to move the code

<p id="header_user_info"> Welcome <a class="login" href="http://tascperformance.dk/webshop/my-account">Log in</a></p>

to another file?

 

<div class="grid_6 omega" id="header_right">

is probably found in the header.tpl file

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...