Mark parent category menu active on single custom post view in WordPress

Recently I developed a theme for one of my client and I had to highlight the menu item of parent category in main menu when one of its associated single custom post is viewed. For that I had to add an action in my functions.php file for nav_menu_css_class. What is does is it returns the … Continue reading Mark parent category menu active on single custom post view in WordPress

Advertisements

Why we moved from OpenShift to Google Cloud

The good old days When OpenShift was in its version 1 it was great from customer's point of view with low budget. OpenShift v1 had free offers to deploy app and add a custom domain to it. There was no SSL support but it could be handled via CloudFlare solution, making overall solution a great … Continue reading Why we moved from OpenShift to Google Cloud

Displaying Titles in Multiline in WordPress

When title is written it is usually displayed in single line on front-end until it is too long to display in one line. But if you want to write title in multiline and want to line break the title after a certain word how can you do that. It is pretty simple. Since, we know … Continue reading Displaying Titles in Multiline in WordPress