How to edit html? - Configuring & using PrestaShop - PrestaShop

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

#1

Posted 27 January 2012 - 01:15 PM

olinus

    PrestaShop Newbie

  • Members
  • Pip
  • 18 Active Posts
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

#2

Posted 27 January 2012 - 01:23 PM   Best Answer

El Patron

    PrestaShop Legend

  • US Moderators
  • 12077 Active Posts
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).

#3

Posted 29 January 2012 - 12:45 PM

olinus

    PrestaShop Newbie

  • Members
  • Pip
  • 18 Active Posts
Thank you so much, solved the problem:)

#4

Posted 04 March 2012 - 08:44 PM

pb4sc

    PrestaShop Apprentice

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

pb4sc

#5

Posted 10 June 2012 - 04:24 PM

cpcs

    PrestaShop Newbie

  • Members
  • Pip
  • 4 Active Posts
Hi elpatron,

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

Regards,
cpcs

#6

Posted 28 June 2012 - 10:41 PM

Sonjovski

    PrestaShop Newbie

  • Members
  • Pip
  • 1 Active Posts
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!



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more