Have you “minified” the main CSS file?
Use the copy/paste minifier site I recommend, to replace your existing CSS file in theme folder. Shazam. 😉
or this one:
http://cssminifier.com/
basically make copy of your style.css file; then open original, select all, copy, paste into box, then minify, then copy the “minified” version into your original file put on the server. This compresses the file, which was the error most people see on google pagespeed — it’s not “compression” of the file via gzip, it’s compressing data in the file … semantics… 🙂
Try that if you hadn’t already…. !
Of course I’m doing plesk on apache, and not using nginx for the baseline stuff only some esoteric stuff.
@r1kay
Welll … minifying CSS is unrelated to gzip compression… minification removed all the blank spaces. Some services do this as part of hosting, or you can do it manually — see my sticky post on optimization for how to do that. (LINK BELOW)
@rishab55555
For the woff fonts you need to add that element to your htaccess — again see my stick how to topic.
YOu also have zero control over the “time to live” for stuff on other websites like google stuff.
You both may find my tutorials helpful here:
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
🙂
-
This reply was modified 10 years by
simchris.
Nope. You can ignore the patch files. Those are actually part of the larger folder, not part of the base theme folder.
WordPress automatically makes RSS feeds from all categories …
go to one of your category indexes and just type /feed/ on the end there … shazam!
@Thomas …. Yes, well considering how many security flaws Automattic has had the past decade they are not really reliable on the topic. (sort of kidding there … 🙂 )
FOR EVERYBODY ON THIS ISSUE:
One of my friends news portals in Ohio was completely taken down by hackers pummeling the xml-rpc feature which ANYBODY can attempt to access remotely for all sorts of things. Site was down for almost two days, host disabling account, etc., — I had him disable this to get the site back up, then they blocked the IPS of the attacker.
If you’re using a WP feature like Jetpack — which is awful system hog and site slower-downer, or WP mobile apps (um, why not just use iPad and login into your normal account… or use other tools that don’t need THAT function?).
UPSHOT: for “most” people disabling all XLMRPC and pingback features are wise if you run any sizable site with lots of traffic. You will get attacked at some point.
And it should be self evident if you’re adding ANYTHING to your site from this thread you should make some effort to explore what these things do, what they mean, etc.
So, you shouldn’t be adding anything to your functions file or htaccess regarding the xmlrpc.php file unless you make some effort to look at what that does.
Having used WP for 10+ years now, remember this thread was started to show folks how to “best optimize” their theme for WP — one of those methods is to NOT use ping-backs, XMLRPC or Jetpack, which is not very well optimized for web.
Keep in mind WP folk think a CSS redirect for child themes is good idea, when it’s a bad thing for page speed and Google as it’s a redirect for EVERY page load to another page.
Those are my three cents, your mileage may vary — as I often say.
But that was good info for Jetpack folk, Thomas! 🙂
Hello … yes, they don’t like a “focus” sticky ad, which is ironic since they are now pushing sticky footer ads on mobile (duh).
The way we have avoided this in past is to have the ad be in middle of the content on sidebar … meaning, we have related stories module, recent comments, etc. so that the ad is “part” of the sticky element on a long scroll, and the focus is not the ad.
We have been doing this for 2 years now without issue.
Simple fix for you, turn off the smart sidebar; make sure you don’t have any “auto reload” elements on page for a slider or something which loads ads more than once on same page in same area.
Ah, just so folks know what my little code is doing
the first bit is removing atom feed, second bit ‘extra’ is removing comments feed.
HI .. sorry … I’m kind of midst of being way behind on something which was supposed to be live Sept. 1 and dragging on … you won’t see me around here much this month …
You can simply paste the Google CSE code for a search box into a text widget in sidebar just like any HTML.
You don’t need to import the content — just the “styles” from the content/theme; then you just need to set your home page blocks to your “actual” live site categories.
This may not help, but for https be sure to add the explicit URL for your site to your wp-config.php file as it does help with a whole bunch of weirdo stuff. May have no impact on this issue, but I found it helped with our local installs.
https://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29
Also double check your .htaccess file in case some legacy data there had http vs https used for redirects or whatever.
Yes … totally you can do that 🙂
Also note “server response time” has nothing to do with the theme, WP, etc., but has to do with so called ‘first byte’ — how long it takes server to respond.
For instance our server averages 0.33 sec.
A lot of issues impact that with your hosting provider; speed of system, speed of the DNS and network connections, speed of switch from server to network (e.g., using gigabit switch vs 10/100; possibly using dual gigabit if supported), etc.
That question should be addressed to your host on how to improve that particular issue.
You need to contact Envato via their support ticket system.
Also, fyi, I don’t work here .. .just lurk around a bit as a user 🙂
Chris
This may not be your issue, but had this happen to me …
had 10 items in category, put 10 items from cat on home page, had “don’t show duplicates” turned on, 2 were in featured block at top, so didn’t appear in the category with 10 items, so only showed 8.
Might not be your issue, but that one threw me off for a while and went … duh.
?
You need to use the code from this thread to add the elements to your htaccess file as that is how you specify the “time to live” (expiration headers) — so that browsers know to cache info not updated regularly (like CSS or fonts), and not ask for it every time page loads. See first page of this topic 🙂
@Bichareh
likely you would remove the functions from the theme, per the forum posts on topic; then try each of the plugins to see which works best for your setup.
Well, WordPress does the redirect to the 404 page, so you actually need to redirect the 404 to a page not text. You could simply modify the existing 404 template to be a single html page with a message, which is best solution.
Just edit the existing theme 404 template.
ACF5 is pretty good and fully updated for all the latest WP stuff properly.
@vijayrth11
use gtmetrix.com to debug what you’re missing.
Proper use of gzip/deflate is good for at least 20 points.
Test a post page, not your homepage.
E.g., slow server, slow connection, overloaded plugins, overloaded ad networks, un-optimized images, etc., all contribute to low rating.
Envato set the terms not tagdiv. See themeforest for more info.