Posts by codinator:

How to Redirect other URL to 404 Page WordPress,

27 Sep 2022 in PHP & Wordpress

In 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 […]

Read More »

How to disable block editor in WordPress,

26 Sep 2022 in PHP & Wordpress

Do 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; }

Read More »

How to add and remove class onClick in jQuery,

19 Sep 2022 in jQuery

The following example will show how to use the jQuery toggleClass() method. This method toggles between adding/removing classes from the elements: $("button").click(function(){ $("h1, h2, p").toggleClass("blue"); });

Read More »

How to disable arrows from Number input?,

01 Sep 2022 in CSS

In this article, we will see how to disable arrows from the Number input?. Add This CSS in your style file input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

Read More »

Create Custom Menu in WordPress,

31 Aug 2022 in Wordpress

In this article we will discuss that how to Create Custom Menu in WordPress To add a custom navigation menu, the first thing you need to do is register your new navigation menu by adding this code to your theme’s functions.php file. function wpb_custom_new_menu() { register_nav_menu( ‘my-custom-menu’,__( ‘My Custom Menu’ )); } add_action( ‘init’, ‘wpb_custom_new_menu’ […]

Read More »