Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

Photo

How to edit html?

html css tpl

Best Answer El Patron, 27 January 2012 - 01:23 PM

It's most likely that your changes are not appearing because force .tpl compile is set to no, and that cache is turned on. When making changes go to your back office (assuming a 1.4) -->preferences--->performance and turn on .tpl force compile and cache to no. (remember to reverse these changes when you are finished). Go to the full post


  • Please log in to reply
5 replies to this topic
olinus

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

Posted 27 January 2012 - 01:15 PM

Hello.

I just downloaded a new theme for my upcoming shop: olinus.no

I want to make several adjustment to the html and css. I opened the header.tpl file and header.css file and added a new class for the header.

The problem is I cannot see any of these changes on the page. It just doesn't show.

I added the following css:
#headerouter{
		height: 290px;
		margin: auto;
background: url('../img//header-bak.jpg') no-repeat;
padding-bottom: 10px;
border-bottom: 2px groove #eee;
}

html(<div id="headerouter">)

<!-- Header -->
					  <div id="headerouter">
   <div id="header">
	<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">
	 <img class="logo" src="{$img_ps_dir}logo.jpg?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />
	</a></div>
	<div id="header_right">
	 {$HOOK_TOP}
	</div>
   </div>
			   </div>
   <div id="columns">

Any help is highly appreciated!

Iselin

El Patron

    PrestaShop Legend

  • US Moderators
  • 10774 posts

Posted 27 January 2012 - 01:23 PM   Best Answer

It's most likely that your changes are not appearing because force .tpl compile is set to no, and that cache is turned on. When making changes go to your back office (assuming a 1.4) -->preferences--->performance and turn on .tpl force compile and cache to no. (remember to reverse these changes when you are finished).

olinus

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

Posted 29 January 2012 - 12:45 PM

Thank you so much, solved the problem:)

pb4sc

    PrestaShop Apprentice

  • Members
  • PipPip
  • 57 posts

Posted 04 March 2012 - 08:44 PM

Thanks El Patron. I just spent hours trying to edit my .tpl files, and could not see the changes. This solution fixed it.

pb4sc

cpcs

    PrestaShop Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 June 2012 - 04:24 PM

Hi elpatron,

You are champion, this helped me to see my changes i made.

Regards,
cpcs

Sonjovski

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts

Posted 28 June 2012 - 10:41 PM

THANK YOU SO MUCH !!!
I've spent days trying to figure it out, googled for hours too, and finally found it !!!

too bad the boss is asleep, I almost woke him up saying SOLVED! ;))

:D
greetings from serbia!





Also tagged with one or more of these keywords: html, css, tpl

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users