finished image centering, added tags to sidebar

master
Chris Punches 2018-01-30 18:27:10 -05:00
parent d76c75476a
commit ec4148a3b8
2 changed files with 29 additions and 6 deletions

View File

@ -16,7 +16,7 @@
<div class="no-index">No Index</div>
</div>
<li class="site-bio show" style="display:block">
<ul class="site-bio show" style="display:block">
<div class="about-me clearfix">
<div class="info"><span class="item desc"><h1><?php echo get_theme_mod( 'organization_name_textbox', 'Owned by Chris Punches'); ?></h1></span></div>
<div class="info"><span class="item desc"><?php echo get_theme_mod( 'organization_summary', 'Makes all the things...'); ?></span></div>
@ -53,5 +53,30 @@
);
?>
</ul>
<div class="social clearfix"></div>
</ul>
<ul class="site-bio show" style="display:block">
<div class="about-me clearfix">
<div class="info"><span class="item desc"><h1>Taxonomy</h1></span></div>
<?php
$tags = get_tags();
$html = '<div class="info">';
foreach ( $tags as $tag ) {
$tag_link = get_tag_link( $tag->term_id );
$html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='name dark-btn'>";
$html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;
?>
</div>
</ul>
</div>

View File

@ -1433,11 +1433,9 @@ pre code{
}
.aligncenter {
position: center;
display: flex;
flex-wrap: wrap; /* optional. only if you want the items to wrap */
justify-content: center; /* for horizontal alignment */
align-items: center; /* for vertical alignment */
display: block; /*for the img inside your div */
margin-left: auto;
margin-right: auto;
}