In this post we will discuss about Php Interview Questions and Answers or top 10 Php Interview Questions and Answers. Top Questions for php interviw Q: What is PHP? A: PHP is a server-side scripting language that is used to create dynamic web pages. Q: What is the difference between PHP and HTML? A: HTML […]
Category: PHP
Create Custom Widget for footer in WordPress
October 19th, 2022 by codinatorIn this post i am going to show you how to create custom widget for footer in wordpress. First of all go to theme editor (Appearance > theme editor). select your activated theme and open functions.php file. Step 1: Add this code to your functions file. add_action( 'widgets_init', 'my_register_sidebars' ); function my_register_sidebars() { register_sidebar( array( […]
Create Custom Sidebar in WordPress
October 19th, 2022 by codinatorIn this post i am going to show you how to Create Custom Sidebar in WordPress. First of all go to theme editor (Appearance > theme editor). select your activated theme and open functions.php file. Step 1: Add this code to your functions file. add_action( 'widgets_init', 'my_register_sidebars' ); function my_register_sidebars() { register_sidebar( array( 'id' => […]
Create custom page template in WordPress
October 14th, 2022 by codinatorThe appearance of all the pages and posts that are created on a WP website is handled by a template file named page.php. Creating or editing a custom page template in WordPress requires basic knowledge of HTML, CSS, and PHP. Simply open any text editor and write the following code in it.
How to disable Widget block editor in WordPress
October 12th, 2022 by codinatorIn this article we will discuss that How to disable Widget block editor in WordPress Do you want to disable the new widget block editor page of Gutenberg and bring back the old widget editor? You can do that simply by adding this line into your theme’s functions.php file: function example_theme_support() { remove_theme_support( 'widgets-block-editor' ); […]
How to Redirect other URL to 404 Page WordPress
September 27th, 2022 by codinatorIn this article we will discuss that How to Redirect other URL to 404 Page WordPress You can redirect incorrect URLs to 404 page. First thing you need to create a 404.php file in your activated theme You need to add the following code as the first line in your 404.php file: header("HTTP/1.1 301 Moved […]
How to disable block editor in WordPress
September 26th, 2022 by codinatorDo you want to disable the new page block editor page of Gutenberg and bring back the old one? You can do that simply by adding this line into your theme’s functions.php file: add_filter('use_block_editor_for_post_type', 'd4p_32752_completly_disable_block_editor'); function d4p_32752_completly_disable_block_editor($use_block_editor) { return false; }