Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created November 5, 2018 16:12
Show Gist options
  • Select an option

  • Save yousufansa/85b0909c40d2d2a3f3d1fd0350c40395 to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/85b0909c40d2d2a3f3d1fd0350c40395 to your computer and use it in GitHub Desktop.
Electro - Footer Before Custom Text
if ( ! function_exists( 'electro_child_footer_custom_content' ) ) {
function electro_child_footer_custom_content() {
if( is_front_page() ) { ?>
<div class="footer-before-custom-text">
Your Text Here
</div>
<?php }
}
}
add_action( 'electro_footer_v2', 'electro_child_footer_custom_content', 15 );
.desktop-footer .footer-before-custom-text {
margin-bottom: 45px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment