Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PrestaShop 1.3 Theming - Beginner's Guide

You're reading from   PrestaShop 1.3 Theming - Beginner's Guide Develop flexible, powerful, and professional themes for your PrestaShop store through simple steps

Arrow left icon
Product type Paperback
Published in Jul 2010
Publisher Packt
ISBN-13 9781849511728
Length 312 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Hayati Hashim Hayati Hashim
Author Profile Icon Hayati Hashim
Hayati Hashim
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

PrestaShop 1.3 ThemingBeginner’s Guide
Credits
About the Author
About the Reviewers
Preface
1. Customizing PrestaShop 2. Customizing PrestaShop Theme Part I FREE CHAPTER 3. Customizing PrestaShop Theme Part 2 4. Adjusting Style Sheets 5. Applying Images 6. Steps for Creating Themes 7. Tips and Tricks to Make PrestaShop Theming Easier 8. Deploying Your New Themes Pop Quiz–Answers Index

Time for action—Modifying the layout of the main pages


Based on our specs, where we want the home page logo to be wider, we will need to do some tweaking on the layout of the main page.

We will be "getting rid" of the left and right columns from the main home page, so we will need to add some code to the header.tpl and footer.tpl pages to make it look proper.

The header.tpl and footer.tpl files that we need to edit are located at /prestashop/themes/mythemes/.

In order to get rid of the left and right columns in the main page, we need to insert an if statement in the header.tpl and footer.tpl.

header.tpl

  1. Look for the following code:

    <!-- Left --><div id="left_column" class="column">{$HOOK_LEFT_COLUMN}</div> 
  2. Change it to the following:

    {if $page_name != 'index'}
    <!-- Left -->
      <div id="left_column" class="column">
        {$HOOK_LEFT_COLUMN}
      </div>
    {/if } 
  3. Save the file.

footer.tpl

  1. Look for the following code:

    <!-- Right -->
      <div id="right_column" class...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image