Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1012973

    One of your team members made a tweak to our functions.php file to allow us to have a custom widget position (See original message here: Left Side Menu & Widgets

    add_action( 'ava_main_header', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
      dynamic_sidebar( 'header' );
    }
    
    function move_header_widget_area(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery( '.container_wrap_logo' ).each(function() {
    jQuery( this ).find( '.widget' ).insertAfter( jQuery(this).find('.logo') );
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'move_header_widget_area'); 

    … but the code does something really weird with our logo … it loads below the menu, then moves it to the top.

    Is there someone who can look at this code and fix it so it displays properly?

    Thanks!

    #1013559

    Hey perihelionweb,

    I couldn’t log in (the standard login url redirects me to a 404 page) but you can try to replace youur code with

    
    add_action( 'ava_before_bottom_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
      dynamic_sidebar( 'header' );
    }
    
    

    to fix the issue.

    Best regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.