Github for Calypso – https://github.com/Automattic/wp-calypso
WordPress.com Account (no site needed) – http://wp.com/start/account
Github for Calypso – https://github.com/Automattic/wp-calypso
WordPress.com Account (no site needed) – http://wp.com/start/account
Taking a page from a fellow Automattician’s goals for 2016, I am making a goal for myself that I’ve put off far too long: learning Javascript.
I’ve built many, many themes for WordPress, but was always able to get by with jQuery and learning just enough to do something simple. However, backtracking and learning Javascript from the beginning will open up many more opportunities for me. I want to be able to do things like:
Additionally, with all of the frameworks heavy hitters are getting behind (like React), Javascript shows no signs of becoming irrelevant in the foreseeable future.
So, how can you help me? Send me resources. What site/book/course helped you learn Javascript quickest? After the basics, where did you go from there? More importantly, what parts did you struggle with, and what helped you get over the hump?
If you received this message this morning from Google Search Console (formerly Google Webmaster Tools), you’re not alone. Google has recently been pushing harder for webmasters to allow crawlers full access to all Javascript and CSS so that they can render a site to determine whether or not it meets mobile standards (among other things). Many WordPress sites (along with the other major CMSs) received an ominous warning that their site was blocking assets, and it could affect rankings. While technically true, many of the sites were only blocking /wp-admin/, where absolutely no public-facing assets should live. For those of you that are in that situation, relax.
However, a number of sites are also blocking /wp-includes/. While it doesn’t seem obvious, there are a number of things that live here which would need to be accessed by users (i.e., crawlers) to render pages properly. For example, Dashicons, the small icons you generally associate with the admin side of WordPress, can often be called by themes for front-end usage. Another major thing that can hinder proper rendering by crawlers is jQuery. Sometimes, themes will enqueue a different version, but by default, it lives in the /wp-includes/ folder. If we dive even further into the issue, we’d see that the built-in emojis and comment reply handling would also be affected.
So, what can be safely blocked? At this point, here’s what a “compliant” WordPress robots.txt would look like (as far as what is safe to block). Of course, you’d want to add in your own sitemap directives and other special cases, but this is a good starting point.
User-agent: *
Disallow: /cgi-bin/
Disallow: /trackback/
Disallow: /wp-admin/
Disallow: /xmlrpc.php
One big word of warning: DO NOT block anything under /wp-content/. You can assume anything blocked here is going to hit you pretty hard eventually, since everything to do with site rendering exists here; plugins, themes, images, and so on. It was popular at one point to block crawlers (like Googlebot) from plugin folders, but given the amount of Javascript and CSS many plugins employ now, it’s a dangerous proposition. If you’re blocking anything here, open it back up immediately.
Questions or comments? Leave them below!
In response to the Chrome 44 issue that’s been plaguing some sites, someone was kind enough to roll the fix into a plugin for folks who may not want to poke around their woocommerce.php file.
(originally posted on Bring Your Own Design)
Inspired by a thread on Reddit, let’s look at one of the main complaints about WordPress these days: bloated installations that run slow.
One of WordPress’s greatest strengths is the fact that anyone can purchase or download a premade theme and have a “custom” website up in a short span of time. It’s also one of the things that can cause the most headache for more experienced users. Many theme developers are obsessed with cramming as much functionality into a theme as possible in order to attract the greatest number of potential users. The byproduct of that is a theme that causes the site to load slowly, causes conflicts with plugins, or is simply difficult to arrange the content the way you want.
The vast majority of users who buy layout builder themes probably don’t actually need them. With custom-built WordPress themes, just about any layout can be accommodated through the use of widget areas and custom post types; both of which are built-in functions of WordPress. The will cut down on the number of running functions in the back end of the site, and speed up how quickly the site loads and increases the number of concurrent users it can serve.
Additionally, a custom WordPress theme can be geared towards serving exactly the sort of content that the site needs. Instead of forcing your content into a pre-built theme’s layout, a custom built theme can be laid out in a way that makes sense for the information you want to communicate to your users. Using the custom post type functions, you can configure custom “things” for displaying and managing on your site. Most pre-built themes don’t use custom post types, and the ones that do use them have a lot of added overhead with functions that make them possible to configure in a theme manager.
Finally, a growing reason many companies prefer custom built WordPress themes is for search engine optimization. Although many pre-built themes have SEO functions built in, they tend to be extremely basic, or even outdated. It’s also more difficult to add functionality to premium themes in regards to things like OpenGraph code, A/B testing, or heatmap tracking. Custom built themes give you the space to choose where and how you’d add these sorts of things, and it makes it easier to troubleshoot when it’s not working properly.