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 ArticleCSS 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 ArticleReturning 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 ArticleAdd 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 ArticleAdd 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 ArticleDe-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 ArticleAdd 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 ArticleUse 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 Articleget_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 ArticleUncheck 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