Plugin td-speed-booster remove td-theme-css

Posted in: Newsmag
Post count: 142

hi,

I’m using again your td-speed-booster version 4.5 plugin, I would bring in the header only td-theme-css, to give my users a pleasant feeling, without the white page.

then remove from the footer link

<Link rel = ‘stylesheet’ id = ‘td-theme-css’ href =’ https: //www.site.com/wp-content/themes/Newsmag/style.css? Ver = 3.3 ‘type =’ text / css’ media = ‘all’ />

How can I do??

I await your news about

Post count: 23312

Hello orlando,

Please keep in mind that our speed booster plugin does not remove anything from the theme, sorry! For more information about how you should use our speed booster plugin, please consult here -> https://forum.tagdiv.com/how-to-make-the-site-faster/ Also, if the problem is still there, you should create a new clean install from scratch via FTP way because this is the surest method in this regard. For more information about this, please consult here -> https://forum.tagdiv.com/newsmag-install-via-ftp/

Thanks for your understanding!

Post count: 142

hi,

I just want to know how to put the td-theme in the header

example

// $ This-> move_style_to_footer_queue (‘td-theme’); // This is the main style ofof the theme. It’s only moved on Newspaper 6

adding //

Quale’è the plugin line I have to change peer have this, it does not seem that difficult a question.

I hope this time you got me, I want to do.

Post count: 23312

Hello orlando,

Try to comment our this code from here -> https://www.screencast.com/t/z5vdqwb1

Thanks for the message!

Post count: 142

Hi,

thanks for help.

First solution: I have to delete all of the following code:

 
if (isset ($ this-> style_footer_queue [ ‘td-theme’])) {
            // Whatever the order, make damn sure That our td-theme style is LAST – we remove it from the queue and add it again at the end
            $ Td_theme_value = $ this-> style_footer_queue [ ‘td-theme’];
            unset ($ this-> style_footer_queue [ ‘td-theme’]);
            $ This-> style_footer_queue [ ‘td-theme’] = $ td_theme_value;
        }

Second solution just add //

// If (isset ($ this-> style_footer_queue [ ‘td-theme’])) {
            // Whatever the order, make damn sure That our td-theme style is LAST – we remove it from the queue and add it again at the end
            // $ Td_theme_value = $ this-> style_footer_queue [ ‘td-theme’];
            // Unset ($ this-> style_footer_queue [ ‘td-theme’]);
            // $ This-> style_footer_queue [ ‘td-theme’] = $ td_theme_value;
        //}

Which is the best solution ???

Expect a votro risontro about, good job.

Post count: 23312

Hello orlando,

I have tested the second solution ad work as properly.

Thanks for the message!

Post count: 142

Hello Catalin,

I tried the second solution, but it does not work ..

td-theme remains in the footer and the website is not set well in formats.

I do not know if I explained well ..

Expect to about your feedback, good job.

Post count: 23312

Hello orlando,

If you want that your style.css to remain to the header section you should edit the td-speed-booster.php and comment out this line, like this -> https://www.screencast.com/t/j9B01harJ Try this advice and let us know how it goes!

Thanks for your understanding!

Post count: 142

Hello Catalin,

I managed to bring the td-theme files and ‘js_composer_front header in wordpress

// $ This-> move_style_to_footer_queue (‘js_composer_front’);
// $ This-> move_style_to_footer_queue (‘td-theme’);

but I have a problem with indexing of google and GoogleNews it does not index the latest articles published.

As soon as I changed the modifications done, google and GoogleNews has again inserted in indexing articles.

in your opinion what’s the problem ??

Post count: 22421

Hi,

Sorry but we have no insight to provide regarding the indexing issue. This falls beyond what the theme support can offer you. If you need further assistance with customization we suggest hiring a freelancer to help out as we do not have a customization department and the theme support cannot provide customization solutions. We try to help out where we can but when things get tricky, time does not allow us to investigate a single issue for hours.
We have no idea why google will not index with this modification but unfortunately we do not have the time necessary to investigate.

Thank you for your understanding.
Bogdan B – tagDiv

Post count: 9544

Best way to do this is actually keep the style sheet loading in the footer, then use a ‘critical css generator’ to put the above the fold CSS in the header.php file. That’s what I do.

Post count: 142

Hi Chris,

thanks I will try to use your advice.

You are always the best!!

Post count: 142

Hi Chris,

how do I use CSS above the fold in the header.php but for home, post, category, etc. ..??

thanks for your suggestions

Post count: 9544

Funny — somebody else asked me about this the other day.

I think the trick — have not yet tried this —

a) generate critical CSS for post, critical CSS for home

b) combine into one CSS file

c) run CSS minifier to remove duplication

d) end up with one CSS block; adds some extra stuff to posts, but then you don’t get flash of unstyled text on home page, most notably for the slider (noticed this on one of our sites the other day … actually….).

Seems safest way to do that, but have not actually done it for Newsmag 3.1 just yet.

Pondering having two headers
a) for home/categories
b) for posts

but then that adds another if/then query to every page, which is bad for posts, where speed of posts is more critical than speed of cat/tag/archive pages.

So, combining then de-duping through minification seems logical solution.

Sorry for those of you just tuning in, probably waaaaay over your head — but hope this helps those who are already testing out critical CSS inclusion and moving style sheets to footer methods.

OH – one other issue we ran into is that with only doing the post critical CSS, it actually breaks the links on the grid images on the category indexes due to an apparent conflict with the little zoom effect on hover.

So, looks like the combining/minification is best solution. Doh. More on my to do list, darn it!!! 🙂

Post count: 142

Great Chris, always manage to explain everything very well.

I’ll try as soon as possible to your advice, and I’ll let you know if it works all right.

You’re the best, good weekend.

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