Skip to content

Instantly share code, notes, and snippets.

@snaever
Created June 28, 2017 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snaever/e16f6d67f27dea61bdb8491dd0cfe5bb to your computer and use it in GitHub Desktop.
Save snaever/e16f6d67f27dea61bdb8491dd0cfe5bb to your computer and use it in GitHub Desktop.
Footer blocks for Forta
<?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' );
?>
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