moved tags to bottom of header. applied styles.

This commit is contained in:
jorge 2021-05-27 15:04:27 +02:00
parent cbd58fb809
commit fd91692984
5 changed files with 13 additions and 23 deletions

View File

@ -26,13 +26,6 @@ get_header(); ?>
<?php echo category_description(); ?> <?php echo category_description(); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if (is_category('peephole')) : ?>
<div class="bfr_category_tags">
<?php // wp_tag_cloud( 'unit=rem&smallest=1&largest=1&number=0&orderby=name' ); ?>
</div>
<?php endif; ?>
<div class="bfr_category_archive"> <div class="bfr_category_archive">
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?> <?php /* Start the Loop */ ?>

View File

@ -28,13 +28,14 @@
<!--nav class="site-top-widgets"--><?php //dynamic_sidebar( 'header-widgets' ); ?><!--/nav--> <!--nav class="site-top-widgets"--><?php //dynamic_sidebar( 'header-widgets' ); ?><!--/nav-->
<nav class="site-center-top-nav medium-6 grid-x align-center"> <nav class="site-center-top-nav medium-6 grid-x align-center">
<?php foundationpress_top_bar_c(); ?> <?php foundationpress_top_bar_c(); ?>
<aside class="bfr_category_tags">
<?php if (is_category('peephole') || is_tag() ) : ?>
<?php wp_tag_cloud( 'unit=rem&smallest=1&largest=1&number=0&orderby=name' ); ?>
<?php endif; ?>
</aside>
</nav> </nav>
<nav class="site-top-nav menu"><?php foundationpress_top_bar_r(); ?></nav> <nav class="site-top-nav menu"><?php foundationpress_top_bar_r(); ?></nav>
</content> </content>
<aside class="bfr_category_tags">
<?php if (is_category('peephole') || is_tag() ) : ?>
<?php wp_tag_cloud( 'unit=rem&smallest=1&largest=1&number=0&orderby=name' ); ?>
<?php endif; ?>
</aside>
</header> </header>

View File

@ -1,7 +1,8 @@
.bfr_category_tags { .bfr_category_tags {
font-family: $header-font-family;
.tag-cloud-link::before { .tag-cloud-link::before {
content: '#'; content: '#';
display: inline-block; // display: inline-block;
} }
a{ a{
padding:0; padding:0;
@ -12,4 +13,3 @@
} }
} }
} }

View File

@ -19,11 +19,10 @@
} }
.bfr_category_tags { .bfr_category_tags {
min-height: $global-margin * 6.5; // display:flex;
margin-bottom: -($global-margin * 6.5); // justify-content:center;
padding-top: $global-padding; max-width: calc(66vw - 4rem);
display:flex; margin: 0 auto;
justify-content:center;
a { a {
display:inline-block; display:inline-block;
margin-bottom: auto; margin-bottom: auto;

View File

@ -46,9 +46,6 @@
color:$primary-color; color:$primary-color;
} }
} }
li.current-menu-item.is-active > a {
// color:$secondary-color;
}
li.is-dropdown-submenu-parent > a::after { li.is-dropdown-submenu-parent > a::after {
border-color: $primary-color transparent transparent; border-color: $primary-color transparent transparent;
} }