jlmurgas Posted June 10, 2014 Share Posted June 10, 2014 Hello, I created a new category with selected seasonal products, but my boss is asking me to that page this more personalized (remove the menu header and menu sidebar, other colors, etc..) I've been researching on creating custom pages, but do not know if it would be the right thing to do. Questions: Is it better to create a custom page and add the products? If so, what is the way? Any link to tutorial or something. If not, how I can customize the pages created in categories? remove menus, change colors, etc.. But only on that page. regards, Link to comment Share on other sites More sharing options...
PSfever.com Posted June 10, 2014 Share Posted June 10, 2014 It'd be best to look at the source code and the ID of your body tag. Based on that ID you can create new CSS rules for your site. eg. for Product page, if you wanted to change the color of the h1 tag, you would write #product h1 {color:#ff0000} 1 Link to comment Share on other sites More sharing options...
jlmurgas Posted June 11, 2014 Author Share Posted June 11, 2014 It'd be best to look at the source code and the ID of your body tag. Based on that ID you can create new CSS rules for your site. eg. for Product page, if you wanted to change the color of the h1 tag, you would write #product h1 {color:#ff0000} Applying a style for the header, this would not affect the other pages? I need to remove some elements are within the header. eg the menu and login buttons. Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2014 Share Posted June 11, 2014 if you will use parent #product style id, it will not affect other pages, only page related to #product 1 Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2014 Share Posted June 11, 2014 you can even change color only for certain products! each product page has got own class value, for example product with id 3 has got class: product-3 product with id 189 has got own class product-189 1 Link to comment Share on other sites More sharing options...
jlmurgas Posted June 12, 2014 Author Share Posted June 12, 2014 Guys, I really appreciate your answers. But my problem is not making changes to the page of a specific product. Changes need to perform them in a category of products in specific, ie a category of products of the season. Link to comment Share on other sites More sharing options...
dioniz Posted June 12, 2014 Share Posted June 12, 2014 It is same for category page. If your category id is 3, class for your page body is category-3 So you can change everything on this category page Link to comment Share on other sites More sharing options...
jlmurgas Posted June 13, 2014 Author Share Posted June 13, 2014 (edited) this would be the correct syntax? Website: http://www.kandylandkid.com/34/4th-of-july #category-34 .left_column{ display:none; } Edited June 13, 2014 by jlmurgas (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 this would be the correct syntax? Website: http://www.kandylandkid.com/34/4th-of-july #category-34 .left_column{ display:none; } No, it would be like this: .category-34 #left_column{ display:none; } because body have class category-34 and left column has id left_column supposing you have default theme. Link to comment Share on other sites More sharing options...
jlmurgas Posted June 13, 2014 Author Share Posted June 13, 2014 No, it would be like this: .category-34 #left_column{ display:none; } because body have class category-34 and left column has id left_column supposing you have default theme. Doesn't Work .category-34 #left_column{ display: none !important; } Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 Is it possible to see your site? Link to comment Share on other sites More sharing options...
jlmurgas Posted June 13, 2014 Author Share Posted June 13, 2014 Is it possible to see your site? URL: http://www.kandylandkid.com/34/4th-of-july Is it possible to see your site? http://www.kandylandkid.com/34/4th-of-july Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 What version of PS you have? Link to comment Share on other sites More sharing options...
jlmurgas Posted June 13, 2014 Author Share Posted June 13, 2014 1.5.6 Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 Ok 1.5.6 doesn't support this by default but this might help you: http://www.prestashop.com/forums/topic/285562-custom-class-for-body-depending-on-category/?do=findComment&comment=1440260 Link to comment Share on other sites More sharing options...
jlmurgas Posted June 13, 2014 Author Share Posted June 13, 2014 Ok 1.5.6 doesn't support this by default but this might help you: http://www.prestashop.com/forums/topic/285562-custom-class-for-body-depending-on-category/?do=findComment&comment=1440260 if I upgrade to version 1.6 the previous CSS code will work? Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 Yes it will, but i suggest you to make full backup of existing site if anything go wrong with update. Also take into account that your current theme might not work with 1.6 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