• dear wordpress.org forum users,
    i started makin my own template. while i was trying to implement a menu (wp_nav_menu) using the documentation i recognized that my style.css isn’t working and after a few hours of searching i don’t know why.
    I used the header.php of the documentation and added my menu:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(); ?> <?php bloginfo( 'name' ); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    </head>
    <body>
    <-- BANNER etc -->
    <div id="menu">
    <ul>
    <li><a href="<?php echo get_settings('home'); ?>">1</a></li>
    <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
    </ul>
    </div>

    style.css:

    /*
    Theme Name: Test Template
    Description: Homepage Template
    Author: Johannes G
    */
    
    body{
    }
    
    #menu{
    width: 900px;
    height: 20px;
    padding: 0px; }
    #menu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    list-style-image: none;}
    #menu li {
    display: inline;}

    i can’t find the fault

  • The topic ‘style.css is not working’ is closed to new replies.