Woocommerce Cart Fix for Bootstrap Websites

Last year Woocommerce made some code changes to their shopping cart that can cause any theme running Bootstrap to break the layout of their checkout page. The file itself is form-checkout.php found in woocommerce/templates/checkout. In this file, they now use ‘col-1’ and ‘col-2’ as their two columns in the checkout page. This conflicts with newer versions of Boostrap where ‘col-1’ and ‘col-2’ dictate column widths, and therefore show their checkout columns as very narrow. Col-1 is a random and badly planned class for woocommerce – since it really doesn’t specify what the column is. The easy way to fix this is to include some css in your theme that overwrites the max-width setting that Bootstrap has for col-1 and col-2. Here’s the code that works:   Thanks to muktoapb who came up with the workaround at the original issue on github....

Call Featured Image from Parent Post

Here’s a simple php code for WordPress that gets the Featured Image from a parent post and displays it on a child page. I had this come up recently for someone who was creating an online guide, so the parent post was the primary topic, and they wanted to easily make all sub posts have the same header without having to do it themselves. I also added the conditional functionality to look for the post thumbnail for the child post first – so that you could overwrite it if you wanted. This also uses ‘global $post;’ as it was used outside the loop – you should be able to remove that if you’re using it in the loop....

Website JSON-LD Schema For Multiple Locations

When you’re trying to give a website the best Local SEO setup, most of the time you concentrate on getting on Google Business (aka Google Places), making sure you use the area’s name on the site and getting reviews. The other part of a good local SEO setup is structured data. Below I’ll show you how to use Schema markup to better assist Google and other sites with identifying your business details, especially when you have more than one location. This is even more essential if you’ve got more than one location listed on a single page of your site, which can be the case with one page or small websites. I’ve started using JSON-LD instead of the microdata version because you can just group it all together in one script. The downside is that you have to update the code if your location...

Why Your Company or Blog Needs a Vision Statement

When it comes to starting a company,  a very ‘old school’ part of the branding process to create a Mission and Vision Statement. I cannot tell you how many old companies I’ve worked with that took these statements as law and have them up on a mounted poster in their offices.   We all know though that no one outside the company REALLY cares what your vision statement is, but still people want it on their websites and other marketing materials.   Why I think your blog or company needs a vision statement is a bit different than telling your potential audience what you stand for and displaying it on all your marketing materials.   To me, a vision statement is a way for you to describe to yourself and any employees what your business does. This is important if you’re just starting out...

How to Choose a Blog/Business Name

Choosing a business or blog name is hard, but what is harder is changing it once you’ve got a following. This is why it is very important to choose a name you like right from the beginning. The name should be informative, memorable and not a fad. What do I mean by this? First let’s look at the ‘informative’ part. New brands that try to go with the single word names normally end up confusing people. This is why many new companies should (and do) have explanation names or at least sub-names.To explain, a name like “PowerPro Nutritional Supplements” is a lot more informative than simply “PowerPro”. If you’re brand is well known, like say, Coke, then you’re welcome to get rid of any explanations. The explanation part could also be a sub-name, or tagline, as long as its used everywhere. So in this...