forumer88 Posted September 26, 2012 Share Posted September 26, 2012 Hello, we are using the blocklanguages of Prestashop 1.4.9. We use many languages on our website. For each language, there is a small flag displayed on the theme. I need someone to combine these flags into css sprite to speed up loading of the front page. If you are interested, please send me a quote and your contact information. Thank you. Thanks a lot Rob Link to comment Share on other sites More sharing options...
evolution.x Posted July 29, 2013 Share Posted July 29, 2013 Hi Rob, Are you still looking for the language flags in a CSS Sprite? Regards Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 hey it's a topic from sept 2012 :| Link to comment Share on other sites More sharing options...
evolution.x Posted July 29, 2013 Share Posted July 29, 2013 Nobody replied so I'm assuming the job was never done, he may still be interested so I thought I'd ask. No harm in asking. Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 29, 2013 Share Posted July 29, 2013 yes create a transparent png image put all the image now crop the image area u want..and u wil get height and width on css background position: put that in negative if from left if from right just put the position. if u are offering job for this think larger...create sprite for all images Link to comment Share on other sites More sharing options...
evolution.x Posted July 29, 2013 Share Posted July 29, 2013 Jiten rash, it's not quite as simple as that with the block languages. They are displayed from the img directory using a foreach and the flag iso code. As standard there is not an individual class for each flag where you can add the sprite properties. Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 that's right i agree with @evolution.x user, who don't know a lot about css and "how the things" work will not understand what to do 1 Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 29, 2013 Share Posted July 29, 2013 what vekia..????? can is see ur site how many languages u have Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 what vekia..????? can is see ur site how many languages u have sorry mate, i don't understand why you asking me about my website? I'm not a owner of prestashop store, but i created a lot of stores for my customers can you explain what you expect from me? regards Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 29, 2013 Share Posted July 29, 2013 u didnt got me what vekia was for u and can is see ur site how many languages u have? was for the person who posted this Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 ahh no worries jitenx, just thought that you're talked to me thanks for clarification regards my friend Link to comment Share on other sites More sharing options...
Dh42 Posted July 29, 2013 Share Posted July 29, 2013 Its a simple solution really, create a sprite with the images, edit the loop in the block languages to append the iso of the language on to the class of the ul that is being loaded, then affect the background image by targeting the css class. Link to comment Share on other sites More sharing options...
evolution.x Posted July 30, 2013 Share Posted July 30, 2013 I now have a CSS Sprite for the language flags running on my site www.bioaquatek.com. Reduced the HTTP requests by 9 images 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