Strategic Growth and Marketing Blog

Supercharge your WordPress Website for Top Google PageSpeed and GTMetrix Scores
WordCamp Edinburgh 2017 The above is the slidedeck from my talk (Supercharging Your WordPress Site’s Speed) at the WordCamp Edinburgh 2017. #wcedin Here’s a PDF copy if you would prefer…

How to Craft Page Titles for Search Engine Optimisation
Page Titles (also called as Title Tags) are similar to page headings – they tell both users and search engines what the content on a particular page is about. The…

Currys’ Price Match Promise – An Inventive UX Feature
Let’s say you are looking at a product on the Currys website. You wish to read reviews about this product or want to compare prices and availability from other retailers…
Magento – Inspect the Data Passed Through Observer Events
[php] echo “<pre>”; var_dump($observer->getDataObject()->getData()); [/php]
Magento – Show Address Fields in Customer Registration Form
Open up your local.xml or any xml file that you are using with your theme. Add the following bit: [xml] <customer_account_create> <reference name=”customer_form_register”> <action method=”setShowAddressFields”> <param>true</param> </action> </reference> </customer_account_create> [/xml]…
WordPress Fix – the_date() Function Returning Blank Value
Are you are using the_date() function in WordPress templates and getting a blank or empty value? When more than one post is published on the same day, the_date() function displays…
Vagrant – Removing VM from Global Status after Deleting Folder and Files
You might have deleted the folders and files for a Vagrant virtual machine. However, you will see the machine appear under the ‘vagrant global-status’ command. If you issue the command…
Magento – Get Current Package Name and Theme Name
// To get the current package name of the Magento store / site Mage::getSingleton(‘core/design_package’)->getPackageName(); // To get the current theme of the Magento store / site Mage::getSingleton(‘core/design_package’)->getTheme(‘frontend’); // You can…
Magento – Disable Toolbar Sort / Order By Memory Cookie
[xml] <reference name=”product_list_toolbar”> <action method=”disableParamsMemorizing”/> </reference> [/xml]
WordPress – Changing The Site URL Using WP-CLI Command Line Tool
The WP-CLI command line tool is a handy application to run various WordPress tasks. Download the WP-CLI command line tool into the WordPress root folder using CURL or WGET. [bash] curl…
Magento – Adding a Custom Category Attribute (EAV)
[php] $setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’); $setup->startSetup(); $setup->addAttribute(Mage_Catalog_Model_Category::ENTITY, ‘show_sale_icon’, array( ‘backend’ => ”, ‘default’ => 0, ‘global’ => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, ‘group’ => ‘General’, ‘input’ => ‘select’, ‘label’ => ‘Show Category Sale Icon’,…
Magento Fix – Email Validation for New gTLDs
Have you come across the following errors in Magento? Invalid email address “[email protected]” “[email protected]” is not a valid hostname. ‘domain.events’ appears to be a DNS hostname but cannot match TLD…


