ErnestoLopez Posted December 16, 2021 Share Posted December 16, 2021 (edited) Hello, I know that to change the logo it can be done with the administration panel but what I want is to know how I can manipulate the theme that I am implementing so that directly when I choose it, it changes the logo in all its versions. Currently, according to the guide ...https://devdocs.prestashop.com/8/themes/ ... any modification of the theme I do on the folder "themes / my_theme / _dev" then "compile" and I already have the changes in the "front office" But I can't find a way to do it like this Thanks a lot, Ernesto. Edited December 16, 2021 by ErnestoLopez (see edit history) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted December 16, 2021 Share Posted December 16, 2021 Actually, you can. To do that, you could create a module that installs with your theme and have a "logo installation" in the `install()` method. How the upload of the logo works you can check in the files, for example src/Core/Shop/LogoUploader.php Link to comment Share on other sites More sharing options...
Krystian Podemski Posted December 16, 2021 Share Posted December 16, 2021 Actually, you can. To do that, you could create a module that installs with your theme and have a "logo installation" in the `install()` method. How the upload of the logo works you can check in the files, for example src/Core/Shop/LogoUploader.php btw. IMO it's not a good practice and you should avoid it Link to comment Share on other sites More sharing options...
ErnestoLopez Posted December 17, 2021 Author Share Posted December 17, 2021 Okay, Thank you very much Krystian. Why do you say that it is not a good practice? If I am going to establish a theme with changes in all aspects, I understand that one of the most important will be to put a consistent logo. The user will have time to put the one they want with the administration panel. Also, the theme that I am developing is a closed solution whose logo should not be changed. Greetings, Ernesto Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now