When it comes to choosing a theme for their websites, most newcomers are overwhelmed. There are thousands of themes available, both free and paid. Each theme appears to be superior to the others. How do you pick the best WordPress theme? As a res ...
Mark parent category menu active on single custom post view in WordPress
Recently I developed a theme for one of my clients and I had to highlight the menu item of the parent category in the main menu when one of its associated single custom posts was viewed. For that, I had to add an action in my functions.php file for n ...
Why we moved from OpenShift to Google Cloud
The good old days When OpenShift was in its version 1 it was great from the customer's point of view with a low budget. OpenShift v1 had free offers to deploy apps and add a custom domain to it. There was no SSL support but it could be handled via th ...
Displaying Multiline Title in WordPress
In WordPress when the title is written it is usually displayed in a single line on front-end until it is too long to display in one line. But if you want to write the title in multiline and want to line break the title after a certain word how can yo ...
Different color for each menu item in WordPress
In a recent project, I got a requirement that each menu item should be highlighted in a different color when visited. The menu items and their required active colors were: Home - Green Portfolio - Blue Team - Yellow Contact - Red These colo ...
Rollover image – Change image on hover/mouse over
Often when designing websites static or dynamic, PHP or ASP.Net, Laravel or WordPress, you have to design in a way that if the user hovers an image it gets changed and an alternate image is displayed. This can be easily achieved via simple HTML event ...
Override parent shortcodes in your WordPress Child Theme
Overriding shortcode defined in WordPress parent theme is pretty easy. Just use a after_theme_setup section in functions.php of the child theme; example: add_action( 'after_setup_theme', 'my_child_theme_setup' ); function my_child_theme_setup() { ...
WooCommerce Per Product Shipping Price Calculation
If you have different rates depending on the item you will need to set up each one in the 'Flat Rate' shipping method and ensure it is selected on the Product itself. First, you will need to have a Shipping Class setup: Go to the menu on the left han ...
How To: Open a WordPress Menu Link In New Window or Tab?
I have come across multiple WordPress users who aren’t aware that WordPress has a bunch of functions hidden in the “Screen Options” section of multiple Administration Pages. Today I want to show you how to open links in custom menus in a new window o ...