GoneVintage Posted June 14, 2013 Share Posted June 14, 2013 Hi everyone, I was wondering if there's an easy (not mess up everything) way of using a background image in tabs on default prestashop 1.5.4 theme. Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 hmmm what you exactly expect? I just wondering what you mean by "tabs" ? Link to comment Share on other sites More sharing options...
GoneVintage Posted June 14, 2013 Author Share Posted June 14, 2013 I was expecting a question like this The colored rectangular shaped pieces with letters in. Categories, Tags, etc... Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 you're talking about blocks: or : ??? ? Link to comment Share on other sites More sharing options...
GoneVintage Posted June 14, 2013 Author Share Posted June 14, 2013 How could you insert images in posts, I thought I had to upload it somewhere and insert it using the url? Second answer Nice question marks, though ... Link to comment Share on other sites More sharing options...
GoneVintage Posted June 14, 2013 Author Share Posted June 14, 2013 Got it ... Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 ok, you have to edit blockcategories/blockcategories.tpl file add own class to the: <h4 class="title_block">{l s='Categories' mod='blockcategories'}</h4> for example: <h4 class="title_block mynewclass">{l s='Categories' mod='blockcategories'}</h4> then in global css create this: .mynewclass { background:red!importnat; } you can use the same method for other blocks. remember to create individual classes for each block. Link to comment Share on other sites More sharing options...
GoneVintage Posted June 14, 2013 Author Share Posted June 14, 2013 Thank you for the thorough answer! Sounds really complicated, but I'll give it a try tomorrow. Doing this we could assign different colors to different block headers ... but how about using the same image as a background? I mean 1x20 pixel gradient image(or some pattern) to "spice up" the design. Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 you can use background: param with repeat command, for example: .mynewclass{ background:url('url_to_your_background_image) repeat; } Link to comment Share on other sites More sharing options...
GoneVintage Posted June 14, 2013 Author Share Posted June 14, 2013 You sound like you're one of the Prestashop creators ... Thanks again for the quick help. This forum is lucky to have you as a moderator. p.s. Still waiting for your address ... Link to comment Share on other sites More sharing options...
closeupman Posted June 15, 2013 Share Posted June 15, 2013 (edited) Thank you for the thorough answer! Sounds really complicated, but I'll give it a try tomorrow. Doing this we could assign different colors to different block headers ... but how about using the same image as a background? I mean 1x20 pixel gradient image(or some pattern) to "spice up" the design. yes, it's not that hard to stylize the block 'tabs' if you know css basics. I did it at this website: sitinuriatistudio.com I learned through watching some videos at Youtube what files and classes/ids to use.(Also you can use the inspect element in Chrome to find out) Search for 'learn prestashop' or some combination of terms with prestashop in it And Yes, Vekia has been extremely helpful. You should check out his chat module Zop. It's very useful. Edited June 15, 2013 by closeupman (see edit history) 1 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