Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18623

    Hello, I’m working with the choices template in this link themconcept.michtormos.ca

    I would like to chage the Header textarea above Social media icons for a menu, I put this code:

    <?php

    echo “<div class=’sub_menu’>”;

    $args = array(‘theme_location’=>’avia2′, ‘fallback_cb’ => ”, ‘depth’=>1);

    wp_nav_menu($args);

    echo “

    </div>”;

    ?>

    In my header.php file but is not placed where I want it to be, over the search field and social media icons. An I would also like it to have the same css style that the other link texts, in orange but smaller and without the underline.

    I’ll really appreciate if you could help me with this.

    Thanks!

    #100165

    Hi mctt,

    For positioning you will need to wrap it in a div class and then add css to put it where you want it.

    For the overall styling, you’ll need to prepend everything with #header to make sure you only apply the style to this menu and not the same sub menu that is in the #socket.

    This should get you started on the overall restyling:

    #header .sub_menu a:hover {
    text-decoration: none;
    font-weight: normal;
    color: #A0A1A3;
    }
    #header .sub_menu a {
    color: #83868a;
    }

    Regards,

    Devin

    #100166

    Thanks! I really appreciate your help! :)

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Create a new menu in the header textarea above Social media icons’ is closed to new replies.