Categories
WordPress

How to create contact form in WordPress

Step 1: Install “Contact Form 7” plugin and activate it

Categories
WordPress

how to enable or disable WP_DEBUG_DISPLAY

Step 1: Navigate to WordPress installation directory, and open wp-config.php change defined(‘WP_DEBUG’, true); to true, it will enable debug mode change defined(‘WP_DEBUG’, false); to false, it will disable debug mode Step 2: Save the file and reload the page It will save the setting, and reload the WordPress with new setting.

Categories
WordPress

WordPress: Create a child theme

Step 1: Create a child theme folder twentytwenty-child Step 2: Inside child theme create style.css This theme is child theme of twentytwenty theme. Template is name for the parent theme. Rest of the field is not important. Custom style should, be placed in this file. It will override parent style. Step 3: Include function.php file […]

Categories
WordPress

Create custom post template

Step 1: Create a file new-template.php in theme folder Navigate to wp-content->themes->twentytwenty( Note: Select any of the active theme in your wordpress), and create a new file new-template.php Content of new-template.php is: <?php /* * Template Name: New Template * Template Post Type: post */ get_header(); ?> “Template Name” is important to set, this is […]

Categories
WordPress

WordPress: Comment html content inside the post

If you wish to hide HTML content from user, or which to add some information for yourself to read later, you can do it using special comment tag Method 1: Method 2: Try it and enjoy!

Categories
WordPress

WordPress theme development for beginners

Step 1: Create file and folder template required for theme Navigate to wp-content->theme->create your theme folder Step 2: Add information about Theme in style.css These information will appear in admin account Navigate to Appearance->Themes, your theme will be listed, click on the activate button, to activate it. By default index page will be loaded, which […]

Categories
WordPress

Install WordPress Using Composer

Step 1: Create composer.json Create a project folder, inside project folder create a file composer.json, with contect Step 2: Run composer Step 3: configure wordpress change file name wp-config-sample.php to wp-config.php Step 4: edit wp-config.php configure the following settings Step 5: navigate to http://localhost/project-folder Create website name, admin-username, admin-password, admin-email and click okay Done!

Categories
WordPress

How to fix image upload issue in WordPress

Step 1: Open your website in Filezilla or any other FTP client application, go to “wp-content/uploads” Step 2: Right-click on “uploads” folder, and click “File Attributes..”, then change Numeric value to 744 and check “Recurse into subdirectories” -> Apply to directories only-> and click okay Step 3: Reload the website and check file upload

Categories
WordPress

Fix error WordPress “Sorry, This File Type Is Not Permitted For Security Reasons”

Method 1: WordPress Plugin Use any of the following WordPress plugins add additional mime type and allow the file type to upload as well: WP Add Mime Types Mime Types Extended Unsafe Mime types Mime Types Plus Method 2: Allow all file type Update wp-config.php. This file will be found in root directory of WordPress […]

Categories
Ubuntu 18.04 WordPress

Fixed : WordPress, Permalink post name not working,404 error

Easy fix for Permalink post name not working, 404 error