fixes
This commit is contained in:
parent
01e848619c
commit
56cc24346f
3 changed files with 40 additions and 4 deletions
|
|
@ -20,3 +20,26 @@ function fachwerksauna_setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action( 'after_setup_theme', 'fachwerksauna_setup' );
|
add_action( 'after_setup_theme', 'fachwerksauna_setup' );
|
||||||
|
|
||||||
|
function theme_customize_register( $wp_customize ) {
|
||||||
|
|
||||||
|
$wp_customize->add_setting( 'fachwerksauna_footer-text', array(
|
||||||
|
'default' => '',
|
||||||
|
'type' => 'option',
|
||||||
|
'capability' => 'edit_theme_options'
|
||||||
|
),);
|
||||||
|
|
||||||
|
$wp_customize->add_control( new WP_Customize_Control(
|
||||||
|
$wp_customize, 'footer-text_control', array(
|
||||||
|
'label' => __( 'Footer text', 'fachwerksauna' ),
|
||||||
|
'description' => __( 'Text in footer area', 'fachwerksauna' ),
|
||||||
|
'settings' => 'fachwerksauna_footer-text',
|
||||||
|
'priority' => 10,
|
||||||
|
'section' => 'title_tagline',
|
||||||
|
'type' => 'text',
|
||||||
|
)
|
||||||
|
) );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
add_action( 'customize_register', 'theme_customize_register' );
|
||||||
13
index.php
13
index.php
|
|
@ -175,16 +175,21 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-two-fifths is-hidden-mobile grow-column">
|
<div class="column is-two-fifths is-hidden-mobile grow-column">
|
||||||
Presseanfragen bitte an <a href="mailto:simon.brose@gmail.com">simon.brose@gmail.com</a>
|
<?php echo get_option('fachwerksauna_footer-text'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="column"> <strong>Sitemap</strong>
|
<div class="column"> <strong>Sitemap</strong>
|
||||||
<ul>
|
<ul>
|
||||||
<li> <a href="/impressum">Impressum</a></li>
|
<?php
|
||||||
<li> <a href="/datenschutz">Datenschutz</a></li>
|
wp_nav_menu( array(
|
||||||
|
'menu' => 'footer',
|
||||||
|
'container' => false,
|
||||||
|
'items_wrap' => '%3$s',
|
||||||
|
) );
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-two-fifths is-hidden-tablet">
|
<div class="column is-two-fifths is-hidden-tablet">
|
||||||
Presseanfragen bitte an <a href="mailto:simon.brose@gmail.com">simon.brose@gmail.com</a></div>
|
<?php echo get_option('fachwerksauna_footer-text'); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -498,6 +498,14 @@ html.has-navbar-fixed-top {
|
||||||
margin-bottom: 12px
|
margin-bottom: 12px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer ul {
|
||||||
|
padding-left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .columns .column:nth-child(2) {
|
||||||
|
flex-grow: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.footer a {
|
.footer a {
|
||||||
color: #E9E9E9
|
color: #E9E9E9
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue