User1234567891 Posted February 6, 2014 Share Posted February 6, 2014 (edited) There is quit a bit of inline css in my page body. I have had a look at product-list.tpl, but can't really find it. (the page I am talking about is the product list) I just can't seem to find it to make some changes. Does anyone know where I can find this css code? For example the first line of code: .required_info, .error, a.color, .autumn_add_to_cart:disabled, .autumn_add_to_cart_ph:disabled, .ac_product_name strong, #cart_block .price, .sf-contener .sf-menu > li > a:active, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active, .sfHoverForce > a, #featured-products_block_center .on_sale, #featured-products_block_center .discount, #featured-products_block_center .price_container .price, #layered_block_left .layered_subtitle, #layered_block_left .nomargin a:hover, #category_view_type.grid_view #product_list .product_list_details_left .price, #category_view_type.grid_view #product_list .product_list_details .on_sale, #category_view_type.grid_view #product_list .product_list_details .discount, #category_view_type.grid_view #product_list .product_list_details .online_only, #category_view_type.list_view #product_list .product_list_details_left .price, #category_view_type.list_view #product_list .product_list_add_to_cart .out-of-stock, #category_view_type.list_view #product_list .product_list_details .on_sale, #category_view_type.list_view #product_list .product_list_details .discount, #category_view_type.list_view #product_list .product_list_details .online_only, #product_price_block .our_price_display, #product_stock_stat #availability_statut span#availability_value.warning_inline, #product_stock_stat #last_quantities, #new_comment_form .title, #product_comparison .price, #product_comparison .discount, #product_comparison .on_sale, table.autumn-table a:hover, table.std a:hover, ul.step li.step_current span, ul.step li.step_current_end span, ul#order_step li.step_done:after, table#cart_summary tfoot .price, .addresses ul.address .address_delete a, p.required sup, .payment_module:hover a, ul.myaccount_lnk_list li a:hover, #block-history #order-detail-content span.price, #block-history #order-detail-content span.price-shipping { color: #7E9C84 !important; } Edited February 6, 2014 by lostrisq (see edit history) Link to comment Share on other sites More sharing options...
User1234567891 Posted February 6, 2014 Author Share Posted February 6, 2014 Nobody knows where the above code in the body is located? Where can i alter it? Where is it generated? Link to comment Share on other sites More sharing options...
vekia Posted February 7, 2014 Share Posted February 7, 2014 can you share url to your website? it looks like not default code, so it's hard to say somethin more without inspection Link to comment Share on other sites More sharing options...
User1234567891 Posted February 9, 2014 Author Share Posted February 9, 2014 Hello Vekia, Thank you for responding. I am using a theme which I am altering. On this page the code is being generated: http://www.pukt.nl/borduur/index.php?id_category=14&controller=category[\url] I am trying to alter the "new" ribbon, but this code is overruling it all, and I cannot seem the find where it is generated. Link to comment Share on other sites More sharing options...
vekia Posted February 9, 2014 Share Posted February 9, 2014 there are two possibilities: 1) it's a part of header.tpl file (located in your theme) but i don't think so that this is the problem 2) it's a part of one module you've got. which one? go to modules > positions, search for displayHeader modules list, what module you've got right after addshoppers module? you have to check it first, definitely Link to comment Share on other sites More sharing options...
User1234567891 Posted February 10, 2014 Author Share Posted February 10, 2014 Well, it is not part of the header.tpl file, I did check that before. 2) I cannot find modules -> positions -> displayHeaderThere is no positions folder in the modules folder. I also did a file search on positons and displayheader, but no luck ? Link to comment Share on other sites More sharing options...
Tobiasz Posted February 10, 2014 Share Posted February 10, 2014 Style comes from autumn.css and are called (supposingly in header.tpl) by commands: <style> .required_info, .error, a.color, .autumn_add_to_ca… </style> <style> input.button_mini, input.button_small, input.butto… </style> <style> .autumn_add_to_cart:hover, .autumn_add_to_cart_ph:… </style> <style> .autumn_add_to_cart, .autumn_add_to_cart_ph, input… </style> (I've shortened the styles to make it simpler.) Link to comment Share on other sites More sharing options...
vekia Posted February 10, 2014 Share Posted February 10, 2014 strange, as lostrisq said, there is no styles in header.tpl :/ Link to comment Share on other sites More sharing options...
User1234567891 Posted February 10, 2014 Author Share Posted February 10, 2014 There are no styles in header. The header document is the same as the original prestashop header. Autumn.css is not generating those styles, or at least, I do not know how.If you look at the page provided, you see at the bottom that the "new" tag on a product is all green. This green is called from somewhere, but not autumn.css! Link to comment Share on other sites More sharing options...
vekia Posted February 10, 2014 Share Posted February 10, 2014 this is why i suppose that it's a part of some module, i mean, module which is positioned right after the addshoppers addon Link to comment Share on other sites More sharing options...
User1234567891 Posted February 11, 2014 Author Share Posted February 11, 2014 Hey Vekia, I have not got a clue how to find this. Because indeed, the css is generated straight after addshoppersyou stated in an earlier reply that I should look in modules > position, but I cannot find it. Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 strange thing that you can't open modules> positions tab you've got limited access to back office? you're on admin account, or employee account? Link to comment Share on other sites More sharing options...
User1234567891 Posted February 11, 2014 Author Share Posted February 11, 2014 owwwwwwww.... I was looking through FTP Found it.Got it! Thank you!!! (it was the module theme, a php file in there contained al the inline styles) Link to comment Share on other sites More sharing options...
Recommended Posts