Quantcast
Channel: Altschuler
Browsing all 60 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to Add a Subject Line to an Email Link in WordPress

When adding or editing a link in the WordPress editor, you can add a subject line by appending “?subject=My Subject” to the end of the href attribute of the link , as shown below. (Replace “My Subject”...

View Article


How to Migrate a WordPress site from WP Engine to Your Computer Using Git and...

Create a new local WordPress install on your computer. Export the database from the WP Engine site and import it into your local site’s database using the WP Migrate DB plugin. Delete all the themes...

View Article


How to Restrict a WordPress Search Form to a Custom Post Type

In order to restrict WordPress search form results to a particular custom post type, create your own form based on WordPress’ default form. Then add a hidden input with its value set to the name of...

View Article

How to Change the Notification Email to New Users in WordPress

The notification email that new users receive from WordPress can be changed by creating a simple plugin. First, create a plugin file in your plugins folder. Name it whatever you like (for example,...

View Article

40 High-profile Government Websites Made with WordPress

CIO.gov – http://cio.gov/ Official Texas State Website – http://www.texas.gov/ The NHS Leadership Academy – http://www.leadershipacademy.nhs.uk/ Data.gov – http://www.data.gov/ The National Archives –...

View Article


How to Add an Archive Template File in WordPress by Using a Plugin

Adding an archive template file from a plugin can be useful in cases where you may not be able to add it directly to the theme folder. In this example we are adding an archive template...

View Article

How to Disable Editing of the Theme and Plugin files from the Admin Panel in...

In order to disable theme and plugin editing from the WordPress admin panel, add the following code to your wp-config.php file:define( 'DISALLOW_FILE_EDIT', true );The “Editor” options will now be...

View Article

How to Get a Taxonomy Term Name From its Slug in WordPress

In order to get the name of a taxonomy term from its slug, use the following code, where “fish” is the taxonomy and “great-white-shark” is the taxonomy term’s slug:$term = get_term_by('slug',...

View Article


A Very Simple Example of How to Display Posts Using the WordPress REST API...

If you haven’t done so already, install the WordPress REST API (Version 2) plugin on the WordPress site from which you want to get posts from. Below is a very simple example HTML file that will get the...

View Article


Where Does WordPress Store Images?

When you upload an image to your WordPress site, it stores them in a folder called “uploads.” Within the “uploads” folder it will organize images by the year and month that they were uploaded. For...

View Article

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 Article

How 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 Article

How 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 Article


How 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 Article

How 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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

How 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 Article

How 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
Browsing all 60 articles
Browse latest View live