Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how make custom menu in wordpress

function wpb_custom_new_menu() {
  register_nav_menus(
    array(
      'my-custom-menu' => __( 'My Custom Menu' ),
      'extra-menu' => __( 'Extra Menu' )
    )
  );
}
add_action( 'init', 'wpb_custom_new_menu' );
Comment

how make custom menu in wordpress

<?php
wp_nav_menu( array( 
    'theme_location' => 'my-custom-menu', 
    'container_class' => 'custom-menu-class' ) ); 
?>
Comment

add custom css to wordpress menu item

// Wordpress apperance panel settings
1. Go to admin > appearance > menu
2. Click on Screen Options (top right of the screen)
3. Check the CSS classes options in the “Show advanced menu properties” panel
4. add your css classes to the element
Comment

PREVIOUS NEXT
Code Example
Php :: how to take last entry in database in laravel Method Two 
Php :: WooCommerce cart API php 
Php :: wpdb get results foreach 
Php :: php compare two arrays of objects 
Php :: Laravel Excel numbers formatted as text still appearing as number 
Php :: hello world in php 
Php :: laravel set config 
Php :: how to completely delete php 
Php :: adding days in datetime php 
Php :: laravel collection push 
Php :: get request data in observer laravel 
Php :: laravel migration make auto increment 
Php :: emergency password reset script wordpress 
Php :: php compute price less discount 
Php :: compare php date with mysql date 
Php :: date diff in laravel 
Php :: add custom page to wordpress 
Php :: laravel validation get failed rules 
Php :: js unserialize 
Php :: laravel eloquent select case when 
Php :: Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version "= 8.1.0". You are running 8.0.8. in /Applications/MAMP/htdocs/schools/vendor/composer/platform_check.php on line 24 
Php :: this page isn t working http error 500 laravel on server 
Php :: jwt auth laravel auth without password field 
Php :: passing parameters with route keyword in blade laravel 
Php :: show featured image in post wordpress 
Php :: yii2 jquery head 
Php :: PHP min() and max() 
Php :: php file download from url 
Php :: php fetch mysql result as variable 
Php :: laravel validation in controller 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =