WordPress.org

Ready to get started?Download WordPress

Forums

Different color for active post link in widget category menu (7 posts)

  1. drozdullo
    Member
    Posted 1 year ago #

    I must to have different background on active link in wigdet menu categories. How can i do that?

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Depends on your theme and site -- if you post a link to it, someone can likely help you.

  3. drozdullo
    Member
    Posted 1 year ago #

    Sure. On this page, 2nd sidebar
    http://zrobiestronke.pl/klienci/im/category/zamowienia-publiczne/

    This is Mystique theme.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I'm not totally clear on what you want to do, but in general, you can target specific menu items using the unique id or class that is assigned to each one. If you look in the rendered HTML code, you'll see that your first menu item has this code

    <li id="menu-item-18" class="menu-aktualnoci">

    So your CSS code could be something like this:

    .block ul.menu li#menu-item-18 {
      background styles -- you need to put these in
    }

    You may need other styles to make it all work right, but that's the general idea. Firebug is a useful tool for working with CSS and this is a good reference site:

    http://www.w3schools.com/css/

  5. drozdullo
    Member
    Posted 1 year ago #

    I mean the 2nd menu from the left. This with links to pages is easy, cuz they got class .active, but posts hasn't :/

    I was looking for solution today for almost 10 hours and nothing ;/

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Sorry I still don't understand what you are asking, can you try to explain more?

  7. drozdullo
    Member
    Posted 1 year ago #

    Hmmm,

    When You're on this post:
    http://zrobiestronke.pl/klienci/im/testowe-2/

    On the left side in widget U got menu with posts from category.
    I want to highlight active/current post in menu.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.