Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

Tag cloud widget output as a list #500

Open
samikeijonen opened this issue Mar 17, 2017 · 0 comments
Open

Tag cloud widget output as a list #500

samikeijonen opened this issue Mar 17, 2017 · 0 comments

Comments

@samikeijonen
Copy link

samikeijonen commented Mar 17, 2017

Here is info about tag cloud widget output as a list in Twenty17. In short we should discuss should we use list format in tag cloud widget after it drops in the Core.

Here is the idea of code changes.

functions.php:

function twentysixteen_widget_tag_cloud_args( $args ) {
	$args['largest']  = 1;
	$args['smallest'] = 1;
	$args['unit']     = 'em';
	$args['format']   = 'list';
	return $args;
}
add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' );

style.css:

/* Tag Cloud widget */
.tagcloud ul {
	list-style: none;
	margin: 0;
}

.tagcloud li {
	display: inline-block;
}

.tagcloud a {
	border: 1px solid #d1d1d1;
	border-radius: 2px;
	display: block;
	font-family: Montserrat, "Helvetica Neue", sans-serif;
	line-height: 1;
	padding: 0.5625em 0.4375em 0.5em;
	margin: 0 0.1875em 0.4375em 0;
}

.tagcloud a:hover,
.tagcloud a:focus {
	border-color: #007acc;
	color: #007acc;
	outline: 0;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant