Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Current Navigational Highlighting

  • This topic is empty.
Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #127558
    Alen
    Participant

    How about, re-uploading the `wp-admin` and `wp-includes` folders from a fresh download of WordPress…

    Remember to back up before! Just in case.

    #127559
    Alen
    Participant

    This might help too: http://wpshout.com/body_class/

    #127596
    Alen
    Participant

    How did you set up your blog at `/blog`?

    #127771
    Alen
    Participant

    I’ve managed to replicate what you’ve done on my local setup with Starkers and the issue is with the creation of Blog page and setting it up as static for your posts.

    I’m getting blank body class also.

    I would just use one of the conditional statements and output custom class for `blog` that you can target.

    #127772
    Alen
    Participant

    Also check out this Bug from Starkers https://github.com/viewportindustries/starkers/issues/16

    #128425
    Alen
    Participant

    Why are you making this so difficult for your self?

    Just generate the menu via WordPress.

    Then include it in your template:
    ``

    [This will get generated. (CodePen, with more info)](http://codepen.io/anon/pen/LbKxt)

    You might also need to [add theme support for menus](http://codex.wordpress.org/Function_Reference/add_theme_support), and [you can add multiple menus too](http://codex.wordpress.org/Function_Reference/register_nav_menus).

    #128433
    Alen
    Participant

    You already have functionality built in. All you have to do is generate the menu, look at the code, figure out what elements/classes/ids are there and just apply current functionality to appropriate elements.

    Don’t worry about asking questions! It’s the reason this place exists.

    It’s always hard before it’s easy. Don’t get frustrated.

    #128672
    Alen
    Participant

    @mintertweed I’ll go over your reply soon and respond in detail. Been busy today.

    If you switch to default theme, create the menu, then switch back to Starks theme, menu should be there. That’s how I did it in my local example.

Viewing 8 posts - 16 through 23 (of 23 total)
  • The forum ‘CSS’ is closed to new topics and replies.