webdev.ramyash@gmail.com
Web Development: Register nav menu in wordpress
Register nav menu in wordpress
Home
About
Developer Tools
Contact
🏠 Home
›
Register nav menu in wordpress
Add in functions.php
<?php
add_action( 'after_setup_theme', 'register_my_menu' );
function register_my_menu() {
register_nav_menu( 'test', __( 'Test Menu', 'theme-slug' ) );
}
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
🔍
Popular Posts
Include file in PHP.
We can include a file using "include() " or "require()" function with file path as its parameter. Example: <...
Open a directory, and read its contents.
<?php $dir = "employe/"; //directory name if ($dr = opendir($dir)) { while (($file = readdir($dr))) { echo "Fi...
Create custom widget area in wordpress.
If you are familiar with Wordpress, then you can add easily widget area into the dashboard. 1. Go with an activated WordPress theme, open...
Insert data through ajax into MySql database.
1. Create form.php and copy below code into file. <script type="text/javascript"> $(document).ready(function(){ $(...
Add woocommerce custom product tabs.
Add in your functions.php add_filter( 'woocommerce_product_tabs', 'woocommerce_custom_product_tabs' ); function woocomm...
Check product if already exist in to cart using woocommerce.
Check product if already exist in to cart using woocommerce. add_action( 'woocommerce_add_to_cart_validation', 'check_produ...
bloginfo() function in wordpress.
Displays information about the current site. Get data about your site, for the most part assembled from the data you supply in your Us...
Get post thumbnail by post id ("thumbnail,medium,large,full") in wordpress.
Get post thumbnail by post id ("thumbnail,medium,large,full"). <?php // without parameter -> Post Thumbnail (as set by t...
Create page templates in wordpress.
<?php /** * Template Name: PHP-AJAX-HTML * */ get_header(); ?> <div id="primary" class="content-area...
Thumbnail support custom post type wordpress.
Blog Archive
►
2019
(2)
►
March
(1)
►
February
(1)
►
2018
(10)
►
April
(1)
►
March
(3)
►
February
(1)
►
January
(5)
▼
2017
(9)
▼
December
(2)
Register nav menu in wordpress
Create page templates in wordpress.
►
November
(7)
►
2015
(25)
►
November
(1)
►
October
(3)
►
February
(1)
►
January
(20)
No comments:
Post a Comment