Jump to content

Child theme or copy Classic and edit?


Decals Online

Recommended Posts

Depends on the level of the changes you want to make to the theme.

Small style changes.

Use the file assets/css/custom.css to make your changes. This will not be overwritten at update.

Medium changes to CSS and TPL files

Create a child theme. Otherwise, if you directly modify the Classic theme's files, you will lose the changes at update.

Big changes

If you want no one to recognize that this was the Classic theme, then you should copy it and modify it as a new theme.
In this case you could also consider starting from scratch by using the Starter Theme.

  • Like 2
Link to comment
Share on other sites

4 hours ago, premiumpresta said:

Depends on the level of the changes you want to make to the theme.

Small style changes.

Use the file assets/css/custom.css to make your changes. This will not be overwritten at update.

Medium changes to CSS and TPL files

Create a child theme. Otherwise, if you directly modify the Classic theme's files, you will lose the changes at update.

Big changes

If you want no one to recognize that this was the Classic theme, then you should copy it and modify it as a new theme.
In this case you could also consider starting from scratch by using the Starter Theme.

 

Thank you very much. I think my changes are Medium.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
En 18/11/2017 a las 6:25 PM, premiumpresta dijo:

Depends on the level of the changes you want to make to the theme.

Small style changes.

Use the file assets/css/custom.css to make your changes. This will not be overwritten at update.

Medium changes to CSS and TPL files

Create a child theme. Otherwise, if you directly modify the Classic theme's files, you will lose the changes at update.

Big changes

If you want no one to recognize that this was the Classic theme, then you should copy it and modify it as a new theme.
In this case you could also consider starting from scratch by using the Starter Theme.

Hello, i have a problem, i created a child theme and the classic as parent, the problem is i whant a change in my logo and i read the prestashop developer guide about child themes and how to override, and i tryet but dosent make any change mi code is: 

{extends file='parent:_partials/header.tpl'}
<div class="col-md-6 hidden-sm-down" id="_desktop_logo">
    <a href="{$urls.base_url}">
        <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
    </a>
</div>

y cleaned the cache but dosent change nothing.

in the image you can see the file y want to change is the header.tpl 

 

Thanks.

 

okay, i got it, my problem is solved, the thing is that in the documentation dosent say that you have to copy all the block of what you whant to change, i only was coping the div i need to change and there is the error, the second image code is working.

Screenshot_2.png

 

Screenshot_3.png

Edited by NewMan
i solved my problem (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...