JavaScript Module Management in WordPress

wp_register_script_module() and wp_enqueue_script_module() are two functions in WordPress used for registering and enqueuing JavaScript modules. wp_register_script_module(): This function registers a JavaScript module with WordPress. It tells WordPress that a particular JavaScript file is a module and should be available for enqueuing later. It accepts several parameters such as the handle (a unique identifier for the… Continue reading JavaScript Module Management in WordPress

Better Search Replace plugin in WordPress

Plugin by WP Engine. When moving your WordPress site to a new domain or server, you will likely run into a need to run a search/replace on the database for everything to work correctly. This plugin consolidates the best features from these plugins, incorporating the following features in one simple plugin: Serialization support for all… Continue reading Better Search Replace plugin in WordPress

How to resolve theme editor missing in WordPress

Open up your wp-config.php file, and search for define(‘DISALLOW_FILE_EDIT’, true); Change true to false: define(‘DISALLOW_FILE_EDIT’, false); For those who are using Siteground hosting define(‘DISALLOW_FILE_EDIT’, false); won’t work. Sitegound hosting provide SG Security plugin by default on direct WordPress installation from cPanel and it blocks the Theme Editor and Plugin Editor option by default. To enable… Continue reading How to resolve theme editor missing in WordPress

Published
Categorized as Wordpress

While attempting to install the WooCommerce plugin on a local WordPress instance, an error message is displayed, stating that WordPress requires access to the web server and requests FTP credentials to proceed. The user is prompted to enter FTP credentials, and a suggestion is given to contact the web host if the credentials are not remembered.

Change Ownership of WordPress Directory: Change the ownership of your WordPress directory to the web server user (e.g., www-data for Apache). sudo chown -R www-data:www-data /path/to/your/wordpress Adjust Permissions: Set the correct permissions for directories and files. find /path/to/your/wordpress/ -type d -exec chmod 755 {} ; find /path/to/your/wordpress/ -type f -exec chmod 644 {} ; Replace… Continue reading While attempting to install the WooCommerce plugin on a local WordPress instance, an error message is displayed, stating that WordPress requires access to the web server and requests FTP credentials to proceed. The user is prompted to enter FTP credentials, and a suggestion is given to contact the web host if the credentials are not remembered.

Published
Categorized as Wordpress

Aligning Common Elements to the Bottom with a Simple CSS Technique

For Example: To position a button at the bottom of each column and make them appear on the same line, you can use CSS flexbox or CSS grid, depending on your layout structure. Here are examples using both approaches: HTML <div class=”container”>   <div class=”column”>     <!– Column content –>     <button class=”bottom-button”>Button</button>… Continue reading Aligning Common Elements to the Bottom with a Simple CSS Technique

Published
Categorized as Wordpress Tagged

Usage of Any Font Plugin

Freedom of Font Choice: Enjoy the flexibility of using any custom font on your website without being limited to a predefined set. No CSS knowledge is required. Demo Available: Explore the working demo of Use Any Font to witness its capabilities firsthand. Easy Setup: Quick and straightforward setup without the need for CSS expertise or… Continue reading Usage of Any Font Plugin

Strong Testimonial WP Plugin

Collect and display testimonials on your WordPress site with the Strong Testimonials plugin. After activation, find a page with a guide link and a promotion for the paid version. A new Testimonials section will be added to the Dashboard. An unique feature allows you to remove all upsells by checking a box and saving the… Continue reading Strong Testimonial WP Plugin

How to create an API to fetch menu items from wordpress

Creating an API to fetch menu items from WordPress involves leveraging the WordPress REST API to expose menu data as JSON endpoints. By defining custom routes and callback functions, developers can retrieve information about menus, including their names and associated items. This allows for dynamic integration of WordPress menus into external applications, providing a flexible… Continue reading How to create an API to fetch menu items from wordpress

Plugin for creating an submenu in wordpress

Insert the below code as a plugin in WordPress. code: <?php /* Plugin Name: Custom Department Plugin Description: Adds a custom menu for departments. Version: 1.0 Author: Mukil Mukesh M K */ function custom_department_menu() {     add_menu_page(         ‘Departments’,         ‘Departments’,         ‘manage_options’,    … Continue reading Plugin for creating an submenu in wordpress

How to create a new field in the WordPress user section?

Example: Creating a new field named Skills Step 1: Write the below-given code in function.php in the current theme. function wk_custom_user_profile_skills_fields( $user ) { ?> <h3 class=”heading”>Skills</h3> <table class=”form-table”> <tr> <th><label for=”department”>Skills</label></th> <td> <textarea name=”skills” id=”skills” class=”regular-text”><?php echo esc_textarea( get_user_meta( $user->ID, ‘skills’, true ) ); ?></textarea> </td> </tr> </table> <?php } add_action( ‘show_user_profile’, ‘wk_custom_user_profile_skills_fields’ );… Continue reading How to create a new field in the WordPress user section?