hurray Posted June 1, 2010 Share Posted June 1, 2010 Hi,I would like to rename "Featured Products" as "Our Selection". How can I do that?And how can I select what needs to be displayed on the home page under featured product? Right now we get the image, product title, short description and price. I would like to get rid of the short description in this area. And can the font colors be changed too?Thanks.Hurray Link to comment Share on other sites More sharing options...
NateL Posted June 1, 2010 Share Posted June 1, 2010 If you log into your Admin panel, and then go to Tools > Translations > Modify Translations > Modules Translations, and then you'll have to search the word "featured" (because there's a lot of modules!), you can then change that to whatever you want. If you want to get rid of that description, look in the Modules folder for "homefeatured" (/prestashop/modules/homefeatured)Open up homefeatured.tpl and remove this line: {$product.description_short|strip_tags|truncate:130:'...'} Also, if you're only dealing with one language, you can simply replace the code in the h4 tag, and not worry about dealing with the modules translations that I described above. For example: {l s='featured products' mod='homefeatured'} can just be converted to: Our Selection Font colors can be changed by adjusting the font colors in global.css Link to comment Share on other sites More sharing options...
hurray Posted June 1, 2010 Author Share Posted June 1, 2010 Thanks NateL for your help.I found out how to change the "Featured Items" to "Our Selection".However, I could not find the Modules folder to get rid of the short description of the featured items on homepage. And also where is global.css file located?Thanks.Hurray Link to comment Share on other sites More sharing options...
NateL Posted June 1, 2010 Share Posted June 1, 2010 Thanks NateL for your help.I found out how to change the "Featured Items" to "Our Selection".However, I could not find the Modules folder to get rid of the short description of the featured items on homepage. And also where is global.css file located?Thanks.Hurray That's all in your FTP program.Do you remember uploading PrestaShop to your webserver? If so, then you can find homefeatured here:/prestashop/modules/homefeaturedYou can find global.css here:/prestashop/themes//css/global.css Link to comment Share on other sites More sharing options...
deech123 Posted June 2, 2010 Share Posted June 2, 2010 don't start to mess up your code if you can do this in a language file :-)go to your backofficethen toolsthen translationsin the first select select module translationsand then look for the homefeature module translations and change your language there.greetz Link to comment Share on other sites More sharing options...
hurray Posted June 2, 2010 Author Share Posted June 2, 2010 Yes I can rename the featured product to any other title without messing around with the codes.For as far as getting rid of short description or product title of items that get displayed in home page under "Features Items", I think I can only do that by removing the code, no? Or is there another safer way?Hi NateL,I looked on the back end and found files like global.css, global1.css, global2.css. I am not sure under which of these files is the code to change the font colors. I had a representative from the hosting company change the template. But the font colors were not changed. I would like almost all the texts to be of one color except for the texts that belong to the module heading, page title, Add to Cart, More Info, More Details, Checkout etc; in other words, texts that we find on top of a small colored background. How can this be done? Any help would be greatly appreciated.Thanks.Hurray Link to comment Share on other sites More sharing options...
NateL Posted June 2, 2010 Share Posted June 2, 2010 Hurray,If you don't already, you need to get FireFox with the Firebug tool bar add on.Then, when you right click on some text, it will say "Inspect Element". Click that.Under the "Styles" tab in the Firebug tool bar, you will be able to view the styles that are attached to that element. It tells you the file that those attributes are set (usually in global.css - not global1.css or global2.css, unless it says otherwise in the Style tab), and it tells you what line you can find that on. I attached a screenshot of what my firebug tool bar tells me when I'm inspecting an H2 element.Notice on the Right side, it indicates global.css (line 160)and it says "color: #8A8038;"so, in my FTP program, I would navigate to /prestashop/themes//css/global.css - and edit global.css. Scroll down to line 160 and find that color and change it to what I want. You'll probably have to do that a lot....but that's theme development for ya Link to comment Share on other sites More sharing options...
Recommended Posts