Web & Software Developer

Posts Tagged “seo”

If you use the SyntaxHighlighter Evolved WordPress plugin by Alex Mills (Viper007Bond), you may notice that the CSS file source URLs are appended with a query string to add the version. If you run a speed test on a page with SyntaxHighlighter, you may get a recommendation to “remove query strings from static resources.” Or, … Read more →

This is a bash shell script that will optimize and compresses all JPG, JPEG, and PNG images in a local directory with the TinyPNG API. It will optimize images with these extensions: .png, .PNG, .jpg, .JPG, .jpeg, and .JPEG. The script will not modify or delete your existing images. It will simply create an optimized … Read more →

This shows you how to successfully add the Google Analytics Tracking Code to your Accelerated Mobile Pages (AMP) if you’re using the WordPress AMP plugin by Automattic. Follow the steps below if you want to be able to track your AMP pages in your Google Analytics account. First, Google recommends that you “set up and … Read more →

If you are using microdata instead of microformats, you may notice that WordPress automatically adds the class “hentry” to the post_class. This may create errors for you in the Google Structured Data Testing Tool. This Google toole will think you are using microformats since the “hentry” class gets added to your posts. So, even if … Read more →

These are social media sharing buttons with NO JavaScript for WordPress single posts. This example includes a Google+ share link, a Twitter Tweet link, a Facebook share link, and a Pinterest “Pin it” link, all without JavaScript. Place the following HTML in your single.php where you want the buttons to appear. This also works in … Read more →

UPDATE: Easy Digital Downloads version 2.7 moved the edd-ajax script to the footer. Therefore, this page is no longer necessary. This moves the edd-ajax.js file (from Easy Digital Downloads Plugin) to the footer instead of the head. Please note that there is no guarantee that this will work smoothly on your site. EDD loads it … Read more →

This snippet will stop bbPress from loading the default bbPress CSS stylesheet and the editor.js script on all pages except the bbPress forum pages. Please note that bbPress loads the default stylesheet ( ‘bbp-default’ ) on all pages in order to style any bbPress widgets that may be used on non-forum pages. So, if you’re … Read more →

WordPress loads jquery-migrate.js in order to support older jQuery functions that some themes and WordPress plugins still use. However, many sites do not need jQuery Migrate, at all. The following code snippet will remove jquery-migrate.js from your site. Don’t do this unless you are absolutely sure that you understand the implications. If you’re using old … Read more →

There are 2 ways to add a favicon to your website. 1. The easiest way is to make sure your favicon is named ‘favicon.ico’ and then place it in the root of your website. In that case, you don’t have to add any code to the head of your HTML. 2. On the other hand, … Read more →