WordPress.org

Ready to get started?Download WordPress

Forums

Uridimmu
Uridimmu Theme - can't find the menu items anywhere (5 posts)

  1. callmeveev
    Member
    Posted 1 year ago #

    Hi
    I have been struggling with Uridimmu.
    I can't seem to find the
    <li> of the menu-primary items. Nowhere. In any of the phps.
    (I want to add | - pipe between them)
    Any help will be appriciated.

    [ mod: post html cleaned up. Please remember to use the code tags when putting code into a forum post ]

  2. Thiago Senna
    Member
    Theme Author

    Posted 1 year ago #

    Hi,

    the primary menu is generated in template menu-primary.php. The menu items are displayed to the user just if you have some menu with items associated.

    I didn't understand very well what Do you mean by 'adding | pipe between them. Anyway, the
    <li> tags are generated by the WordPress function 'wp_nav_menu'.

    http://codex.wordpress.org/Function_Reference/wp_nav_menu

  3. callmeveev
    Member
    Posted 1 year ago #

    Thanks. What I meant by adding the sign pipe between the items was creating for example :
    About | Contact us | Company

    With no access to the list itself I could not do that.
    Do you have a solution how do i do that when the list is inside a php command?

  4. Thiago Senna
    Member
    Theme Author

    Posted 1 year ago #

    This is something that you should do with css beside changing the theme templates.

    For example, I would add right borders of each menu item, something like:

    #menu-primary li a {
    border-right: 3px solid red;
    }

    This example is just and example, so you can play with it and others (background, margin, padding and others) until you have something next to wat you need.

    Another option is using the :after and content... I can't test it right now, but would be something like this:

    #menu-primary li a:after {
    content: '|';
    }

    Did you get the idea? I'm sure that what you want would be done better with css beside changing php templates :)

  5. callmeveev
    Member
    Posted 1 year ago #

    Great! Thanks a ton.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags