links widget – add a divider between each link
-
I’ve added the links widget to a non-sidebar area (for lack of a better term — I’m pretty new to the WordPress platform) that displays links for a specific category and limits the count to 12. Basically, I publish a PDF document once a month and want the link to the PDF displayed in this list and limiting it to only the previous 12 months.
I’ve figured out how to style the category name, but I want to add a divider between each link in the list.
<div class="divider> </div>
This is the php code I’m using for this purpose:
function widget_links_args_filter($args) { $args['order'] = 'DESC'; // descending $args['limit'] = 12; return $args; } add_filter('widget_links_args','widget_links_args_filter'); the_widget('WP_Widget_Links', 'category=26', 'before_title=<h5>&after_title=</h5>');
Will someone please help me with this? Gracias!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘links widget – add a divider between each link’ is closed to new replies.