adding html css class atribute to archive links
-
Hi guys,
for one custom theme what i am developing,What do i have to do in order to get
<a>class="archive_link" ...>
instead of<a ...>
from the wp_get_archives function for an aside widget?
In functions.php i have this:function sxo_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'sabercomer' ), 'id' => 'sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>' ) ); add_action( 'widgets_init', 'sxo_widgets_init' );
And in aside.php template i have:
... <ul> <?php wp_get_archives( array( 'type' => 'monthly') ); ?> </ul> ...
thanks in advance,
snor512
[Moderator Note: No bumping, thank you.]
- The topic ‘adding html css class atribute to archive links’ is closed to new replies.