Commit 9db597ac by Simone

feature logo mobile max width

parent 4b9a1a3a
......@@ -72,4 +72,9 @@
<div class="field-group">
<h3>Larghezza Massima Logo (px)</h3>
<?php laniakea_input('logo_maxwidth', 'number'); ?>
</div>
<div class="field-group">
<h3>Larghezza Massima Logo Mobile(px)</h3>
<?php laniakea_input('logo_maxwidth_mobile', 'number'); ?>
</div>
\ No newline at end of file
......@@ -170,9 +170,18 @@ body.archive.category #archive-content main{
<?php endif;
endforeach; ?>
<?php if (is_page()): global $post;?>
.page .has-image:before{
<?php if (is_page()) : global $post; ?>
.page .has-image:before{
background-color: <?php echo get_post_meta($post->ID, 'laniakea_header_bg', true); ?>;
}
<?php endif; ?>
<?php if (!empty(laniakea_option('logo_break'))) : ?>
@media (max-width:<?php echo laniakea_option('logo_break')?>px){
#main-header #logo{
max-width : <?php echo laniakea_option('logo_maxwidth_mobile', 100) ?>px;
}
}
<?php endif; ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment