Author Archives: Sunil Chaudhary - Page 14
Solution to WordPress menu drag and drop conflict
Sometimes our wordpress menu drag and drop functionality stops working suddenly. Most of the times it is the result of Javascript concatenation used for admin area. As per this JavaScript files are concatenated to one URL to make admin faster.…
Add automatic paragraph tag to content
While writing in editor, if we want to add paragraph tag automatically in place of double line break. Then in that case we should use "wpautop" function. So the code becomes like this : wpautop($post->post_content);
Additional custom featured Image field for every page
In wordpress generally we have one featured image section for every page. If in a case we want to add another image field for pages without using any wordpress plugin then we need to put below mentioned code in specified…
Contact form 7 : Customize dropdown options
When we are creating drop-down with the use of contact form 7, we are facing the issues with the validation. If we take an option then in that case required validation message will not show while submitting the form because…
Load Child theme CSS first
When we are working with child theme, we are having separate CSS for parent theme any child theme. Generally we face some design issues for instant of time when the website is loading. In this case the CSS which we need to…
Show pop-up on tab close with custom message
This code is useful when we want to apply a pop-up when a user is closing the tab. With the use of this code you can easily restrict the pop-up on page refresh or on navigating to other pages of…