naoufel Posted July 15, 2021 Share Posted July 15, 2021 Hi, I would like to move my shop logo slightly to the left and also slightly down. I have prestashop 1.6 theme. any idea on how to do that ? Thank you, Fel, Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 15, 2021 Share Posted July 15, 2021 (edited) 2 hours ago, naoufel said: Hi, I would like to move my shop logo slightly to the left and also slightly down. I have prestashop 1.6 theme. any idea on how to do that ? Thank you, Fel, Show the store link. Edited July 15, 2021 by ComGrafPL (see edit history) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 15, 2021 Share Posted July 15, 2021 @naoufel Are you using PrestaShop default 1.6 theme or any paid theme. If you share the site url , then it will possible for us to check Thank you Link to comment Share on other sites More sharing options...
naoufel Posted July 16, 2021 Author Share Posted July 16, 2021 Thank you for your response. I'm using paid theme . My site url is : https://www.moorisharchitecturaldesign.com/ i'm attaching screen shot of my home page Thank you, Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 16, 2021 Share Posted July 16, 2021 Hello, Bellow css will move the logo slightly left and down. you can adjust the value according to your need. #header_logo img { margin-top: 50px; margin-left: -19px; } Using this module you can insert js and css to your theme. https://classydevs.com/free-modules/classy-custom-css-js-module/ Thank you Link to comment Share on other sites More sharing options...
naoufel Posted July 16, 2021 Author Share Posted July 16, 2021 Thank you for your response . Which file do i need to edit ? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 16, 2021 Share Posted July 16, 2021 You can edit the theme css file or add the css using any add custom css module . Inside your themes file you can find style.css file which you can modify Thank you Link to comment Share on other sites More sharing options...
naoufel Posted July 16, 2021 Author Share Posted July 16, 2021 i do not see style.css file in my theme . My prestashop version is 1.6.1.9 Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 16, 2021 Share Posted July 16, 2021 Due to cache enable I do not know which css file. You can check theme css folder also or disable the cache and inspect the css file name via Google chrome. In this video you will find how to use Google chrome developer tools thank you Link to comment Share on other sites More sharing options...
naoufel Posted July 16, 2021 Author Share Posted July 16, 2021 Cache is disabled, but not able to find which file or folder do i need to edit in order to edit the shop logo position and size Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 16, 2021 Share Posted July 16, 2021 Hello, I again check the css file again it is v_824_fedf1fdcf73a075910071891fed53ebc_all.css which load from cache css file. You can check the template file inside css file inside the theme file theme1224 Thank you Link to comment Share on other sites More sharing options...
naoufel Posted July 16, 2021 Author Share Posted July 16, 2021 i found file " v_824_fedf1fdcf73a075910071891fed53ebc_all.css" but as soon as i cleared cache it disappeared so i think this file is not permanent file. any suggestions which file should i edit . I tried to edit filer header.tpl but nothing changed Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 16, 2021 Share Posted July 16, 2021 Please disable the cache from Performance , css compress then you will find all css file in fronted after that you can modify the css file and then enable smart css cache. Thank you Link to comment Share on other sites More sharing options...
naoufel Posted July 16, 2021 Author Share Posted July 16, 2021 i did disable cache for css and looks like that shop logo is under global.css file. could you please let me know in global.css file where do i need to edit Thank you, global.css Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 17, 2021 Share Posted July 17, 2021 Hello, I saw your site in global.css you can add this code in like 272, their is not specific css for this block. so you can add easily,. Once you add this you need to enable the smartcss features. Thank you Link to comment Share on other sites More sharing options...
Ray UK Posted July 17, 2021 Share Posted July 17, 2021 Its a 5 second edit. As above, edit the file /themes/theme1224/css/global.css and just add the code supplied above. Or if you wish to centre it then add #header_logo { display: block; margin: 10px 0 0 0; text-align: center; } Link to comment Share on other sites More sharing options...
naoufel Posted July 18, 2021 Author Share Posted July 18, 2021 thank you for your response. I do not want to put my shop logo in the center of my home page but i just want to move the logo slightly approximate 3mm to the right and 3mm down . Can you please advise on how tom achieve that Thank you, Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 18, 2021 Share Posted July 18, 2021 @naoufel The code I told you insert, will do that. You may need the value to adjust if need. I have test in browser . Thank you Link to comment Share on other sites More sharing options...
madpugger Posted July 18, 2021 Share Posted July 18, 2021 (edited) As mentioned above: Edit the file /themes/theme1224/css/global.css and just add the code supplied above. Add: #header_logo img { margin-top: 50px; margin-left: -19px; } You can put this basically anywhere in the file as long as it is right after a } You can change the 50px to suit, that will move the image down You can change the -19px to suit. that moves it left. to move it right, just use a positive number like 10px. The mention above to "centre" the logo is useful info for others reading this thread and may not be directly aimed at the OP. #header_logo { display: block; margin: 10px 0 0 0; text-align: center; } This code moves the image down 10 pixels and centres it on the screen. I hope that clears things up for you. Edited July 18, 2021 by madpugger (see edit history) Link to comment Share on other sites More sharing options...
naoufel Posted July 18, 2021 Author Share Posted July 18, 2021 I did exactly what you did however the logo is not moving . nothing changes I saved the file, cleared cache but nothing changes see attached screen shot Link to comment Share on other sites More sharing options...
naoufel Posted July 18, 2021 Author Share Posted July 18, 2021 i got it to work now , smart cach css was turned off that is why it was not saving the modification Thank you very much for your help Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 18, 2021 Share Posted July 18, 2021 (edited) I have use this code below. I would recommend to use HTML box free module. Place code in head. #header_logo img { margin-top: 20px; margin-left: 50px; } Edit: You sorted while i post. Cheers Edited July 18, 2021 by ComGrafPL (see edit history) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 18, 2021 Share Posted July 18, 2021 20 minutes ago, naoufel said: i got it to work now , smart cach css was turned off that is why it was not saving the modification Thank you very much for your help Please mark the post as solved. Do not forget to like our solution. Thank you 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