Lego2012
12/13/2016 - 4:59 PM

Split Footer

Split Footer

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

add_shortcode( 'sitename', 'site_name' );
function site_name() {
  return '<a href="' . get_bloginfo( 'url' ) . '" title="' . get_bloginfo( 'sitename' ) . '">' . get_bloginfo( 'name' ) . '</a>';
}

//* Change the footer text
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
    $creds = '

        <div class="alignleft">
            [sitename]<br/>
            Copyright [footer_copyright] &middot; All Rights Reserved
        </div>

        <div class="alignright">
            <a href="http://mydomain.com">My Custom Link</a> on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a><br/>
            Powered by [footer_wordpress_link]
        </div>

    ';
    return $creds;
}

@media only screen and (max-width: 500px) {

    .site-footer .alignleft {
        margin-bottom: 3rem;
    }

    .site-footer .alignleft, .site-footer .alignright {
        text-align: center;
        float: none;
    }

}