Last active
August 29, 2015 14:19
-
-
Save AnnaCrumina/391f0397bc1ae4bbc802 to your computer and use it in GitHub Desktop.
Onetouch - add shortcode before header menu
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 | |
function custom_before_header_bar() | |
{ | |
if (is_home() || is_front_page()) { | |
?> | |
<div class="row"> | |
<div class="large-12 small-12 columns"> | |
<?php echo do_shortcode('[layerslider id="9"]'); ?> | |
</div> | |
</div> | |
<?php } | |
} | |
add_action('reactor_header_before', 'custom_before_header_bar', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment