Hello 🙂
Can you help me to remove css from view source not used as in the picture below

We on our site don’t use woocommerce or bb-press forums and we don’t need to show that on view source. Same also for header styles, or global style templates. This is very important for us to remove that
Thank You
-
This topic was modified 9 years by
ebhelloworld28.
Hello Bogdan B.
Thank you for your answer. I tried but still same… still showing on view source under “<!– Header style compiled by theme –>
”
Thank You
Please try on your demo and tell me how to do. All what i need is to remove css (from view source) that do not use in my site.
Also i have other questions
1. How to set standard dimensions for featured images (I am using POST TEMPLATE STYLE 2)
2. I have installed SSL for my site but if i search with http everything is okay but if i search with https:// images and css are not working properly
Thank You!!
Hello,
The code you mention is the compile code from your settings in the theme panel. You cannot remove that unfortunately. Removing css from the theme is not recommended as the code handles multiple classes at once and deleting one will affect the other and you may break the theme style. The compiled code cannot be removed.
1. The featured image uses a thumbnail to shop up in the post style. It uses a thumb of 696 x 0 so your image will not go over 696 px which is the container width. You will have to make sure your images are bigger than that dimension though otherwise the images will not have the same size. Our theme cannot enlarge images. It can only crop them
2. It means you did not make the move to ssl properly. Please use these guides:
http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/
https://css-tricks.com/moving-to-https-on-wordpress/
https://yoast.com/dev-blog/move-website-https-ssl/
You can also check our forum for some insight on ssl:
https://forum.tagdiv.com/topic/moving-to-ssl/.
Thank you!
Hey Bogdan B.
Regardin CSS this is not compile code from my settings in theme panel, but I can’t know from where it is… my site don’t have connections with woocommerce or bb-forum, so for us is very important to remove some of css not used on our site.
1. Is possible crop all images in desktop with dimensions: 780 x 439px?
2. ok, i am checking
Thank you again for your support!
Hello,
I understand but our theme adds the css for all cases including woocommerce and bbpress. You will have absolutely no gain in removing 10 lines of css code from your site. If you are looking to increase your site’s loading speed you will be far better off using this guide: https://forum.tagdiv.com/how-to-make-the-site-faster/
As for the images, you cnnot crop all images to the same dimensions as our theme use different thumbnail for each case in particular: https://forum.tagdiv.com/theme-thumbs/
Thank you!
Regardin css… I know, but this is request from our client!
I was find here that css code: /wp-content/themes/Newspaper/includes/td_css_generator.php, but if i delete doesn’t make any changes, still shows in view source…
Please kindly give me one option if it is possible to remove these lines of css code, this is very important for us…
OK,
I understand.
If you want to remove the theme css (even though it’s not recommended…but since the client asks, the customer knows best right? :)) you will have to remove the woocommerce and bbpress classes from this file: https://www.screencast.com/t/KWlatsLCb8RA
Then you will have to re-save your theme panel settings as the css gets compiled when saving the theme panel. (change a few settings beforehand)
I hope this helps.
Thank you!