WordPress.org

Forums

How to get navigation without heading? (6 posts)

  1. daGrevis
    Member
    Posted 5 years ago #

    Hey, again! My new problem... I'm creating my own theme, but i need to get, for example, navigation in two ways, first - just heading on navigation with some PHP code, second - just links of it... The default code is...

    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    Thanks.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try:

    <?php wp_list_pages('title_li='); ?>

  3. daGrevis
    Member
    Posted 5 years ago #

    Thanks, it works for almost all... Last problem...

    <?php wp_list_bookmarks('title_after=&title_before='); ?>

    I want just links, without "Blogroll"... Thanks.

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    Same approach - using title_li= will suppress the heading.

    <?php wp_list_bookmarks('title_li=&title_after=&title_before='); ?>

  5. daGrevis
    Member
    Posted 5 years ago #

    YEa, i try that before, and one more time that, what u suggest, but i dont works... I got "Blogroll" and then all links...

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    Try <?php wp_list_bookmarks('title_li=&categorize=0'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags