Chris W. Smith

  • About Me
    • Past Work
  • Tools
  • Blog
  • Contact

Arizona WordPress MeetUp Slides – December 17, 2015

December 17, 2015 By Chris Smith Leave a Comment

Intro To Calypso: Simplifying WordPress from Christopher Smith

 

Github for Calypso – https://github.com/Automattic/wp-calypso
WordPress.com Account (no site needed) – http://wp.com/start/account

Filed Under: Meetups, Presentations, WordPress

Help Me Learn Javascript In 2016

December 17, 2015 By Chris Smith 1 Comment

Javascript LogoTaking 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:

  1. Contribute to projects like Calypso. With WordPress.com moving to Calypso, and the potential for self-hosted WordPress.org sites to use it, being able to understand it on a deeper level (along with the API) can help me be able to dig out bugs, submit fixes, and work towards enhancements.
  2. Build out home automation controls. My home automation system runs on a Mac Mini Python server. While it’s got a suitable app and prebuilt web frontend, there are a lot of things about it that are lacking that could be solved with even a simple HTML/CSS/Javascript site instead of the built-in stuff. By goal is to access the site via older iPads throughout the house for a “whole house” automation and monitoring solution.
  3. WordPress Plugins. I’ve got a couple of very niche plugins out on the main WordPress.org plugin directory. While they’re very basic, they work well for what I needed at the time, and it seems a few other folks needed them too! I would really like to work on enhancing one of them with some settings, since it enables Jetpack functionality for a theme framework that otherwise would require the user to modify their theme.

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?

Filed Under: Javascript, Web Development, WordPress, Work

Help! Googlebot Cannot Access CSS And JS files On My WordPress Site!

July 28, 2015 By Chris Smith Leave a Comment

Googlebot cannot access CSS and JS files on...

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!

Filed Under: Google, SEO, WordPress Tagged With: css, google search console, google webmaster tools, googlebot, gwt, javascript, js, robots.txt, search console, webmaster tools

WooCommerce HTTPS Fix For Chrome

July 24, 2015 By Chris Smith Leave a Comment

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.

Filed Under: WooCommerce, WordPress Tagged With: chrome, https, plugins, woocommerce, wordpress, wordpress plugin

WordPress Theme Bloat: Premium Themes and Layout Builders

February 5, 2015 By Chris Smith Leave a Comment

(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.

Filed Under: Speed, Themes, Web Development, WordPress Tagged With: custom post types, layout builder, plugins, premium theme, Search Engine Optimization, SEO, speed, themes

  • 1
  • 2
  • 3
  • 4
  • Next Page »

Latest Posts

  • Keyword Research Using Python, RAKE, and Support Chat Transcripts June 16, 2017
  • No Title June 16, 2017
  • Premixed Old Fashioneds May 3, 2017
  • Downstairs Bathroom Renovation March 8, 2017
  • Testing Android January 9, 2017
  • About Me
  • Tools
  • Blog
  • Contact

Copyright © 2022 · Built with the Genesis Framework on WordPress

 

Loading Comments...