• A simple question to anyone who’s found it.

    I am currently working on the css of my website and I’ve stumbled upon the following problem.

    the wp_get_archives, a bit of php that calls in the archive links, is set to show in a list, now I wish to change this list with css, but I can’t find the actual php file in which the wp_get_archives is located, so I can’t add a class to the li tags there.

    Does anyone know where it’s located?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why not just surround the call to wp_get_archives with a <div> and give that a class?

    Thread Starter gerben-van-eijk

    (@gerben-van-eijk)

    Myeah I guess I’ll go with that.
    I’m used to structure in my css and html though so going about it like that always makes me feel a bit less content. But I guess there are some things in webdesign you can’t get around.

    I’m not a big fan of “divitis web design” either but, I think when it comes down to using a div or hacking the core, the former seems to be the lesser of two evils.

    Hi

    This took me a long time to find

    wp-includes/general-template.php

    Find this function “get_archives_link”

    You can add li, css, class and other style and alt tags to your wp_get_archives.

    WordPress manual only mentions the function, they only say about the actual function and not the way the link is generated. I found the post here:

    https://www.webmasterworld.com/content_management/3633169.htm

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Simple question -> location of wp_get_archives?’ is closed to new replies.