• m4n4g3m3nt

    (@m4n4g3m3nt)


    Hi people,

    I am building a site for myself. The site is daftnews.nl. I use wordpress 3.1.
    The theme I am using is Motion. What I want to do is, replace the standard images for the categories in the category menu with my own images my designer made for me. How can I do this?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • David Gard

    (@duck_boy)

    Not exactly sure what you mean my this – could you elaborate a little please?

    Thread Starter m4n4g3m3nt

    (@m4n4g3m3nt)

    Sure thing,

    This is, for example, the button to see every post listed under awesome (at this moment).
    https://img829.imageshack.us/i/categorymenuawesome.jpg/

    And I want to change it to:
    https://img576.imageshack.us/i/siteding207.gif/

    The first one is standard and I want to make it a custom one. I’ve been looking into the theme editor and the stylesheet but I’m a rookie to it so I have to reinvent everything..

    Alwyn Botha

    (@123milliseconds)

    IN header.php search for categorymenuawesome.jpg and replace with siteding207.gif

    Change the img widht and height too.

    Else search for the words categorymenuawesome.jpg to see where it is found in your theme folder

    Thread Starter m4n4g3m3nt

    (@m4n4g3m3nt)

    Thanks,

    Only the point is, the pic above was just a screenshot of how it looks like.. In code it actually is just the title of the category plus a dark transparent background so it isn’t an image or something

    melvinram

    (@melvinram)

    What you’ll need to do is use css.

    I don’t have the time to give a complete reply right now but the gist of what you’ll do is something like:


    .menu-item-10 a{
    text-indent: -9999px;
    background: url("/wp-content/uploads/path/to/image.jpg") no-repeat;
    width: 100px;
    height: 20px;
    }

    melvinram

    (@melvinram)

    PS: To get the actual class of the menu item, you should use firebug or Chrome’s inspect tool.

    Thread Starter m4n4g3m3nt

    (@m4n4g3m3nt)

    Thanks for that, it seems pretty clear to me… What I have so far is

    cat-item cat-item-4{
    text-indent: -9999px;
    background: url("/wp-content/images/site-ding2_07") no-repeat;
    width: 177px;
    height: 46px;
    }

    It seems like that is how it should be but when I update the file, nothing actually shows… no changes are made..

    BTW, this is the complete code for the primary menu

    [CSS moderated as per the Forum Rules.]

    With that last part being the thing Melvinram sent (Thanks sport!)

    Thread Starter m4n4g3m3nt

    (@m4n4g3m3nt)

    The complete code again:

    https://pastebin.com/tikNtdQ3

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Category menu editing’ is closed to new replies.