How to Disable Post Revisions in WordPress
In order to disable post revisions in WordPress, add the following line of code to your wp-config.php file:define('WP_POST_REVISIONS', false );
View ArticleHow to Hide Text in WordPress
If you need to hide text in your post or page, switch from the “Visual” view to the “Text” view while editing, and wrap the content that you want hidden in a <div> tag with a style of...
View ArticleHow to Add labels to input fields in Contact Form 7
The Contact Form 7 plugin does not add label tags to forms by default. You must add them yourself. In order to do this, open the contact form and add the label text right next to the input field. For...
View ArticleHow to Fix the Database Import Error When Migrating a WordPress Site That Has...
When migrating a WordPress site that has an older version of the Relvanssi plugin, you may get an error like the following when you try to import the SQL file into the new database: COLLATION...
View ArticleHow to Wrap Long Links
Sometimes a long link can cause a web page to be too wide. This can be especially apparent when viewing the page on mobile devices. Sometimes one long link can cause the whole page to be wider than the...
View ArticleHow to Disable a Link with CSS
To disable a link using CSS, use the following code:.disabled-link { pointer-events: none; cursor: default; }The pointer-events: none; removes the link functionality. The cursor: default; changes the...
View ArticleHow to Add an Arrow Indicator to Menu Dropdowns in WordPress
In order to add arrow indicators to your menus in WordPress, add the following CSS to your theme:.nav-menu li > a:after { content: ' ▾'; } .nav-menu li > a:only-child:after { content: ''; }This...
View ArticleHow to Set Up Multiple WordPress Sites for Development with Vagrant Instead...
The following are instructions to create multiple development WordPress sites locally using one Vagrant virtual machine. This environment can be used to replace your MAMP or WAMP setup. 1. Install...
View ArticleHow to Validate Whether One Input Field Has a Greater Value Than Another...
The following code is a complete HTML page that contains a simple form. The jQuery code will display a validation error message when one field of the form contains a greater value than...
View ArticleHow to Check if You Are on a BuddyPress Member Profile Page in WordPress
The following conditional code is true if you are on any BuddyPress member profile page.if (bp_is_user()) { //You are on a BuddyPress member profile page }
View Article