Hi,
Is there a hook available to place content between the footer widgets and the footer menu?
Just to be clear, I need it to be outside of the footer widgets area and outside the footer menu area.
I ‘ve found the code below, but this places the content inside the footer widgets area.
Any ideas?
add_action( 'avia_after_footer_columns', 'enfold_under_footer_widget_area' );
function enfold_under_footer_widget_area() {
dynamic_sidebar( 'after-footer' );
}
Hey wzshop,
Sorry for the late reply, we don’t have a hook outside of the footer widgets area and outside the footer menu area like this:
But you can use the function above and this script to move the element there, Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script(){
?>
<script>
(function($){
$(window).load(function(){
$( '#footer' ).each(function() {
$( this ).find( '#custom_html-2' ).insertAfter( $(this));
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
note that my test site gave the custom widget area the ID #custom_html-2
yours may be different, adjust to match your ID.
Best regards,
Mike
Hi,
Thanks. Already created my own hook. Topic can be closed.