Sometimes when making a theme or plugin, you want to conditionally enqueue a script or style so that it does not load on pages where it is not used. This process is generally pretty straight forward, just add your enqueue functions inside of conditional statements like this: add_action(‘wp_enqueue_scripts’, ‘add_script_function’); function add_script_function() { if(condition one… Read more »
Posts Categorized:
Website Optimization
WordPress Image Orientation Detection
WordPress introduced responsive images in 4.4 which I find to work great in most cases. I have run across a few situations where I wanted more granular control over the image sizes and how they display based upon the images orientation. I decided the best way for me to implement something like this was using… Read more »
Stop XMLRPC.php Pingback Ping
UPDATE:If you are looking for a plugin that does this, take a look at Eazy Disable XMLRPC Pingback Distributed Denial Of Service (DDOS) attacks are probably the most popular way to take a website offline. In a nutshell, the attacker uses multiple machines to flood a single website with requests, which overloads the server and… Read more »
Google Unviels More Updates To Mobile Search Results Presentation
We have seen Google roll out recent updates that have dramatically effected the presentation of mobile search results. The mobile-friendly label and the algorithm update are two examples that show Google has reexamined the concept of device specific search results. According to The Google Webmaster Central Blog, there is a new change to be on… Read more »
Add PNG Fallback Images For SVG
Scalable Vector Graphics or SVG have been around for quite a while, but they are having a sort of renaissance with responsive design, specifically for mobile devices. SVG has some major benifits over other file types. If you want to add SVGs to your website to replace PNGs or GIFs, there are some things you… Read more »
Optimize Specific Images For Mobile Devices With Responsive Design
Mobile devices have surpassed desktop usage. The approach developers take must adjust to these changes in usage behavior. I like to use responsive design principles to create solutions that adapt to a users device so that the site looks its best whether its viewed on a computer or a phone. One issue related to responsive… Read more »
Defer Parsing JavaScript For Slider Revolution
This is an old post and its information might be outdated. Please refer to Slider Revolution’s documentation for the most up to date information. I think Slider Revolution is OK. I use it because it has an easy to use admin UI and a lot of transitions. I can give a client access to it… Read more »
Secure Your Site: Vulnerabilities Found In WordPress All-In-One SEO
There are quite a few different WordPress plugins available that can add a variety of functionality to your WordPress website. Remember one of the plugins I developed, Eazy Twitter Cards? This is an example of how plugins can be one of the best parts of WordPress because it allows you to expand the capabilities of… Read more »
Add Google Analytics to WordPress in Three Simple Steps
Google Analytics is the industry standard for reporting on web based traffic. Integrating it into your website can give you insights that can increase the effectiveness of your online marketing campaigns, resulting in more visitors. So how does Google Analytics work? After you sign up for Google Analytics for your domain you will add some… Read more »
SEO Tools To Create Higher Rankings Without Developing Content
I feel like I spend a lot of my time talking to clients about the benefits of creating original keyword rich content to add to their websites as the foundation of a strong search engine optimization strategy. Not only does content creation increase the footprint of your website, it also gives you the potential to… Read more »
Increase Your Social Media Engagement With Twitter Cards
Getting active engagement through social media channels can be one of the most challenging aspects of your business’ online marketing campaign. How do you make sure your message does not get lost among all the others on social media? Creating unique content and sharing it in the right channels, and in the right way can… Read more »