Reference to an unused, non-existing JPG in .td-search-background

Posted in: Newspaper
Post count: 17

After checking my site with GTMetrics, I found in the Waterfall section that the theme tries to load a JPG that doesn’t exist. I based my site on the Recipes demo, and after completing my site I deleted all JPG’s in the library that are not used anymore. Somehow the theme tries to load a demo JPG through this style:

.td-search-background {background-image: url('http://MYDOMAIN/wp-content/uploads/2016/05/8.jpg');

I don’t know where I can remove that style. I don’t even use an element with class td-search-background as far as I know. I want to remove the call for that JPG because it takes about 600ms for the theme to try and find it. It slows down my site.

Please let me know what to do.

BTW It would be nice to be able to remove any non-used, left-over demo styles after creating a site using a demo? Why is there a whole bunch of non-used CSS loaded? The same goes for unused plugins like bbpress and woocommerce.

Post count: 22421

Hi,
The image that cannot be foundis the mobile menu background that is also used on the search for mobile: http://screencast.com/t/Jug2oVdTPEk
Please change this image in the theme panel.
As for the bbprtess and woocommerce css these inluine styles were added as there are thme elements such as colors or hover effects that were designed to also affect woocommerce and bbpress. The theme general style will be applied to these plugins as well so the code for them was added inline to the theme code. There is no easy way to remove these parts of the code unfortunately.
I hope this helps.
Thank you!

Post count: 17

Cool, the background is gone now. Thanks alot for the fix and explanation about the styles, Bogdan!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.