Viewing 2 replies - 1 through 2 (of 2 total)
  • Rok

    (@rok)

    How do I use it?

    Upload the srg_clean_archives.php to your wp-content/plugins/ folder and activate it through your wordpress admin panel.

    The Month/Year format is surrounded by “strong” tags. If you would like to change this, just open up the srg_clean_archives.php file and look for this line of code:

    echo get_archives_link($url, $text, ”,’‘,’‘);

    There you can change the current tags to whatever you would like to use. Such as a h2, h3, etc. and re-save the file. Just be sure not to delete the quote marks.

    The list of of articles can be styled in your css by setting up a .postspermonth class.

    Here is an example:

    .postspermonth {
    margin: 5px 0 10px 0;
    list-style: none;
    padding-left: 25px;
    }

    The output from this plug-in is already wrapped in the needed “ul” tags. All you need to do is customize the class to your taste.

    To call the plug-in all you need to do is insert the following string of code where you want the archives to be displayed, ie your sidebar or on a separate archive page:

    srg_clean_archives()

    More detailed information can be found in the readme.txt file.

    If the above information is not clear, you can refer accompaying readme.txt file.

    lhk

    (@lhk)

    Hi,

    I also installed this plugin and would like to strike the comment count.

    What would be the correct conditional change to the tag?

    <?php srg_clean_archives(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘clean-archives-plug-in’ is closed to new replies.