Created
June 28, 2017 13:25
-
-
Save snaever/e16f6d67f27dea61bdb8491dd0cfe5bb to your computer and use it in GitHub Desktop.
Footer blocks for Forta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register our sidebars and widgetized areas. | |
* | |
*/ | |
function footer_widgets_init() { | |
register_sidebar( array( | |
'name' => 'Footer', | |
'id' => 'footer', | |
'before_widget' => '<section>', | |
'after_widget' => '</section>', | |
'before_title' => '<h3>', | |
'after_title' => '</h3>', | |
) ); | |
} | |
add_action( 'widgets_init', 'footer_widgets_init' ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
footer { | |
height: 100%!important; | |
} | |
footer .widgets { | |
display: flex; | |
justify-content: space-around; | |
margin-top: 50px; | |
} | |
footer h3 { | |
font-size: 14pt; | |
font-weight: 500; | |
text-transform: uppercase; | |
} | |
footer section { | |
flex: 1; | |
font-size: 10pt; | |
} | |
footer .textwidget { | |
color: #bbb; | |
} | |
footer .textwidget strong { | |
color: #FFF; | |
} | |
footer ul { | |
list-style-type: none; | |
padding: 0; | |
} | |
footer ul li { | |
margin-bottom: 8px; | |
} | |
footer ul li a { | |
text-decoration: none; | |
} | |
@media screen and (max-width: 770px) { | |
footer .widgets { | |
display: block; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment