Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1212653

    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' );
    }
    #1213808

    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:
    2020-05-17_081114.png
    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

    #1214269

    Hi,
    Thanks. Already created my own hook. Topic can be closed.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hook between the footer widgets and footer menu’ is closed to new replies.