Moved the back to top button out of footer.

This commit is contained in:
Frank419 2024-08-28 10:29:00 +08:00
parent 46d390993f
commit 7b04aa123f
2 changed files with 6 additions and 7 deletions

View File

@ -34,12 +34,13 @@ if( is_home() ) {
</main>
<ul class="minimalistflex-controls">
<?php if ( get_theme_mod( 'minimalistflex_interface_scroll_top', 'yes' ) === 'yes' ): ?>
<li><a href="#" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>">:D</a></li>
<?php endif; ?>
</ul>
<footer class="minimalistflex-footer">
<ul class="minimalistflex-controls">
<?php if ( get_theme_mod( 'minimalistflex_interface_scroll_top', 'yes' ) === 'yes' ): ?>
<li><a href="#" aria-label="<?php esc_attr_e( 'Back to top', 'minimalistflex' ) ?>">:D</a></li>
<?php endif; ?>
</ul>
<div class="minimalistflex-footer-widgets-container">
<?php $sidebars = get_theme_mod( 'minimalistflex_footer_widget_layout', 'one' ); ?>
<?php

View File

@ -1215,7 +1215,6 @@ p[class*=comment-form-] {
list-style-type: none;
transition: background-color 250ms,
color 250ms;
z-index: 250;
}
.minimalistflex-controls:not(:has(li)) {
@ -1253,7 +1252,6 @@ p[class*=comment-form-] {
padding: 1.5em;
background-color: var(--minimalistflex-footer-bg);
position: relative;
z-index: 260;
}
.minimalistflex-footer * {