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 class="no-index">No Index</div>
</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="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"><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> <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> </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> </div>

View File

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