Forums

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

Home Forums CSS Style Current Page in WordPress wp_link_pages

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41849
    siouxfan45
    Participant

    I’m using a modified form of wp_link_pages at [http://themeforward.com/demo2/?page_id=2&page=2](http://themeforward.com/demo2/?page_id=2&page=2 “”)

    When a div is added, we can obviously style the links. But what if I want to style the non-linked current page (the number ‘2’ in this example)… is there a way to achieve this via CSS alone?

    I should mention, I realize I can assign unique CSS to the links and then mess with the size, color, etc of the entire div to change the un-linked current page. But what if I want to add a specific background color or padding – then I’d need to target that specific page number.

    If anybody has any ideas I’d love to hear them! :-)

    #120324
    chrisburton
    Participant

    `:nth-child()`

    #120372
    Watson90
    Member

    @siouxfan45 – I use the built in WordPress class that is applied to each current page link and it looks something like this;

    .current_page_item {

    /* Insert current page styling here */

    }

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