R
R
Roman Romanovich2015-06-11 18:09:21
iOS
Roman Romanovich, 2015-06-11 18:09:21

Menu customization in wordpress?

Good afternoon! We need to position the menu wrapper in Wp properly. here's what I have:
it's like a static layout https://yadi.sk/i/4u7YlxfKhD7Ho this is how it should be displayed
. how to display in my wp: https://yadi.sk/i/_ig8xB-HhD7Ru
here is the actual output of the menu itself


<?php /* Static Name: Navigation */ ?>
<?php if (has_nav_menu('header_menu')) {
wp_nav_menu( array(
'container' => 'ul',
'menu_class' => 'list_menu',
'menu_id ' => '',
'depth' => 0,
'theme_location' => 'header_menu',
'walker' => new description_walker()
));
} else {
echo '
  • ';
    $ex_page = get_page_by_title( 'Privacy Policy' );
    if ($ex_page === NULL) {
    $ex_page_id = '';
    } else {
    $ex_page_id = $ex_page->ID;
    }
    wp_list_pages( array(
    'depth' => 0,
    'title_li' => '',
    'exclude' => $ex_page_id
    )
    );
    echo'
';
} ?>

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
NSA-bot, 2018-08-26
@NSA-bot

SwiftBook.ru
Swiftme.ru
Vasily Usov 's book
And be sure to read this: https://apptractor.ru/develop/kak-ne-zastryat-v-ob...

E
Eugene, 2018-08-27
@Eujene

Read the translation of the article from Reddit https://m.vk.com/@myironcomp-programmirovat-s-nuly...
It describes in great detail how the PL teaches.
Do not buy courses, as there are enough free ones.

A
Alex Kholodov, 2018-08-30
@kholodoff

Hello, write to [email protected], I will help you get started with training, the CS50 course from Harvard is a good start. Then swift.

M
Marat, 2015-06-12
@7kmarat

found the exact same code here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question