Home > other >  Converting html pages to wordpress
Converting html pages to wordpress

Time:03-04

I am trying to convert my normal HTML website which consists of home, about, and T&C pages to WordPress, I have created the theme folder which Consists of index.php, functions.php, header.php, and footer.php files. So now my question is how can I add and link my other pages (about, T&C pages).

CodePudding user response:

You have to use /* Template Name: Home */ on your custom page. For more example: see here

CodePudding user response:

You need to register a menu see code below and link to Codex

 function mytheme_register_nav_menu(){
    register_nav_menus( array(
        'primary_menu' => __( 'Primary Menu', 'text_domain' ),
        'footer_menu'  => __( 'Footer Menu', 'text_domain' ),
    ) );
}
add_action( 'after_setup_theme', 'mytheme_register_nav_menu', 0 );

https://developer.wordpress.org/reference/functions/register_nav_menus/

  • Related