While working on a client project I needed to disable plugin shortcode button from visual editor in WordPress that were added automatically after some plugin installation. I was trying to hide WP Socializer plugin shortcode button form visual editor. Here I’m explaining how did I do that. The solution is quite simple.
55 WordPress Interview Questions and Answers for Experienced – Updated 2020
This consistently updated series of WordPress Interview Questions and Answers is here. These questions are asked generally from a WordPress developer having around 3 or 5 or more years of experience. However, freshers can also take their expertise at an advanced level with help of these WordPress Interview Questions and Answers.
How to check if a page exists by url?
There may be a situation when you need to display content based on existence of a page or custom post by url. As the example below there are two different parent pages for the same page slug. We assume that certain pages will have the same title, and just have different parent pages. So we want to check if a page exists by url?
Restore an older version of a theme or plugin
We usually update themes and plugins installed whenever respective authors release a new version of that program installed in our WordPress software. But at a time I had need to restore an older version of a theme as I was using child theme and the parent theme author made numerous changes in theme files as well as added some new class references which were making child theme incompatible.
Bigger & Fixed Search Box with Dropdown in Bootstrap Navbar
Twitter Bootstrap is powerful mobile first front-end framework that provides all the necessary components to develop responsive websites using its common elements. One of the most popular elements on any website is the top navigation bar and the search widget. On a recent project, I had to implement Bigger & Fixed Search Box with Dropdown in Bootstrap Navbar and making the search bar fixed across different screen size.
convert time string into time with AM/PM in MySQL
I have the old database in which time was stored as string with AM/PM. One day I required to do some time calculation on that field. I have googled out for convert time string into time with AM/PM in MySQL and found some solution.
dynamically adding options to select tag in Contact Form7
Contact Form7 is a well known wordpress plugin which is used mostly to develop a contact/query form. We can use all type of fields in contact form and need to assign values static. But there is no option of dynamically adding the values to fields in contact Form7 plugin. Here I am describing the way of dynamically adding options to select tag in Contact Form7.
getting timestamp in JavaScript
I am describing here getting timestamp in JavaScript. In development,so many times we do the date and time manipulation and If we need to do it client side means we need to use JavaScript.
Including a JavaScript file in another JavaScript file
Here I will describe the way of including a JavaScript file in another JavaScript file. Because sometimes we need dynamic loading of JavaScript, may be based on some condition. In Css, We have already @import to include one css file into another.
Number of days in a month
PHP provides functions to get the number of days in a month for a specified year and calendar. We can use date(‘t’) or cal_days_in_month. See syntax, parameters and examples in rest of the article.