Quantcast
Channel: mgason – gasolicious.com
Browsing latest articles
Browse All 11 View Live

Changing URL’s in your database after migrating a WordPress site

The problem After you migrate a site to a new location or use WordPress Export/Import to import some posts to a site the URL’s of files such as images still point to the original site. After migration...

View Article


CSS for using small caps, text figures etc. font-feature-settings

Credit This is not so much an article as a handy store of this information for myself. There are specific situations where small caps and text figures are appropriate. For a discussion of that see this...

View Article


Returning Arrays in PHP, a simple example

This one is just a little post for myself really. It may be handy for someone else. WordPress will often store data in Array in PHP. When you go to return something back by name you just get the result...

View Article

Add the stock status to Woocommerce Shop and Category pages

Woocommerce displays the Stock Status, for example ‘Out of stock’ or ‘6 in stock’ on the single product page. I needed to display the message on the Shop and Category pages. Also my client actually...

View Article

Add login and logout to menu for woocommerce

There are a couple of ways you can do this. I like this as it adds the login and logout as 1 menu item, the state of which changes if the user is logged in or not. The code below is from a git, Credit...

View Article


Image may be NSFW.
Clik here to view.

De-minify that block of minified CSS to make it readable

De-minify that eye destroying block of minified CSS in your themes style.css to make it readable. have you ever come across this when for example trying to build a child theme in WordPress. Minified...

View Article

Add a giftwrap checkbox and instruction field to your child theme woocommerce

Code for a giftwrap checkbox and input field on woocommerce checkout This code will add a checkbox and input field to woocommerce checkout. It will also add it to the orders page in the backend AND the...

View Article

Image may be NSFW.
Clik here to view.

Use IFTTT to automatically post a WordPress post to Pinterest

IFTTT is the fast smart way to connect apps. Do you write WordPress posts then write the same thing on Facebook then pin an image to Pinterest. Well IFTTT could save you a lot of work. Don’t bother...

View Article


get_dimensions() for displaying dimensions deprecated in woocommerce 3

The code to display product dimensions has changed in woocommerce 3 This is my old code which was in my child themes functions.php file. It displayed the product dimensions next to the label...

View Article


Uncheck default “Ship to different address” on woocommerce checkout using...

“Ship to different address” is the default setting on woocommerce checkout. There has been much discussion about why this is or is not a good idea. See this thread...

View Article
Browsing latest articles
Browse All 11 View Live