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
Confirmation Dialog Using JavaScript.
<a href="?del=<?php echo $row['id']; ?>" onclick="javascript:return confirm('Are you sure that you want...
Insert data through ajax into MySql database.
1. Create form.php and copy below code into file. <script type="text/javascript"> $(document).ready(function(){ $(...
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...
Create page templates in wordpress.
<?php /** * Template Name: PHP-AJAX-HTML * */ get_header(); ?> <div id="primary" class="content-area...
What is WordPress Memory Limit Error?
WordPress is composed in PHP, which is a server-side programming dialect. Each site needs a WordPress facilitating server for it to work le...
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...
Include file in PHP.
We can include a file using "include() " or "require()" function with file path as its parameter. Example: <...
Get comma separated column values from database using php
<?php $con=mysql_connect('localhost','root',''); mysql_select_db('db',$con); $result = mysql_query...
Reverse word in a string using PHP.
The strrev() function reverses a string. Example: <?php echo strrev("Welcome"); // outputs "emocleW" ?>...
Create a Table using PHP and MySQL.
<?php $con=mysqli_connect("localhost","user","password","test_db"); // Check connection ...
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