Sid Kathirvel

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 downloading the slides. Connect with Kathir Sid Vel I would love to connect with you to discuss more. @KathirSidVel https://www.linkedin.com/in/kathirvel/ https://www.kathirvel.com Thanks to all the…

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 Page Title is the first thing your visitors see in the search results. Also, it is one of the most important ranking factors in SEO…

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 around the web. What would you do? Copy the product’s name and paste it into a Google search tab? Now, imagine seeing the following message…
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] You will notice a code in the register.phtml file found here: /app/design/frontend/base/default/template/customer/form/register.phtml [php] if($this->getShowAddressFields()): [/php] This is the condition that shows the customer address related…
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 only the date for the first post in the loop. The right way to handle this is by using the the_time() function. Try this: [php]…
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 ‘vagrant destroy [virtualmachineid]’, you will get the following message “The working directory for Vagrant doesn’t exist! This is the specified working directory:” To remove the…
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 pass ‘locale’, ‘layout’, ‘template’, ‘default’, or ‘skin’ into the above function.
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 -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar [/bash] Check if the tool is working. [bash] php wp-cli.phar –info [/bash] Not run the search and replace command to look through all…
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’, ‘position’ => 100, ‘required’ => false, ‘source’ => ‘eav/entity_attribute_source_boolean’, ‘type’ => ‘int’, ‘user_defined’ => true, ‘visible’ => true, ‘visible_on_front’ => true, ) ); $setup->endSetup(); [/php]…
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 against known list ‘domain.events’ appears to be a local network name but local network names are not allowed It is probably because the Zend email…


