Seffinielo Posted July 25, 2014 Share Posted July 25, 2014 Hello Members, I'm trying to change the background of the categories and subcategories. I want to always appear the same background. To do this I have gone to edit the file category.tpl was the theme folder. Originally had this: <div class="content_scene_cat_bg" {if $category-> id_image} style = "background: url ({$ link-> getCatImageLink ($ category-> link_rewrite, $ category-> id_image, 'category_default') | escape: 'html ':' UTF-8 '}) 0 bottom no-repeat; background-size: Contain, min-height: {$ categorySize.height} px; "{/ if}> {if $ category-> description} I've changed the following: <div class="content_scene_cat_bg" {if $category->id_image}style="background:("http://www.sexshop-j.../background.jpg") 0 bottom no-repeat; background-size:contain; min-height:{$categorySize.height}px;" {/if}> {if $category->description} After the shift compilation effort but does not change the background, remains as before. What I need to do or I am doing wrong? Thanks for your help Link to comment Share on other sites More sharing options...
TimShoper Posted July 25, 2014 Share Posted July 25, 2014 Hi! if black background and border edit styles - category.css Link to comment Share on other sites More sharing options...
vekia Posted July 26, 2014 Share Posted July 26, 2014 if you check page source, do you see new background code ? if not - recompile theme and clear shop cache Link to comment Share on other sites More sharing options...
Seffinielo Posted July 28, 2014 Author Share Posted July 28, 2014 I have recomplite theme and clear cache but doens't work. Is correct the change in the fiel file category.tpl? Or Is another which I've to change? Regards Link to comment Share on other sites More sharing options...
vekia Posted July 28, 2014 Share Posted July 28, 2014 your backgrund param looks weird make sure that you use correct syntax like: backgrund:url('url to picture'); 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