Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #936474

    Hi,
    I just updates enfold to 4.2.6 version, the header and mthe menu are completely broken now. Link provided in private section.
    After reading posts about 4.2.6 update issue I tried to modify header.php and enabled php 7.1 version according to proposed solutions but it did not work.
    Thanks for your help.
    Regards.

    #936559

    Hey kumharas,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #936665

    Hi Victoria,
    I’ve created a clone instance of my website so that you can login.
    informations are in private area.
    Thanks.

    • This reply was modified 6 years, 7 months ago by kumharas.
    #937424

    Hi kumharas,

    I see you have a copy of avia.js in your child theme. Did you update it with a fresh copy from Enfold 4.2.6?
    What modifications do you have there?

    Best regards,
    Victoria

    #937573

    Hi Victoria,
    I put the following in my enfold-child avia.js (end of file) few month ago to avoid seeing alt text when hovering images :

    jQuery(document).ready(function($){
    jQuery('img').removeAttr('title');
    });

    I did not update this file with a 4.2.6 version of avia.js after updating enfold.
    It the issue comes from that, is there another way to hide alt text when hovering images?

    You can make any test you want, this instance is dedicated to solve this problem.

    Thanks for your help.

    #937710

    Hi kumharas,

    Ok, you can put this code in functions.php in your child theme:

    
    
    function add_custom_script(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
        	jQuery('img').removeAttr('title');
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');
    

    And remove the avia.js form the child theme. Or just put a fresh copy in the child theme for now.
    Best regards,
    Victoria

    #937783

    HI Victoria,
    I removed avias.js file from enfold child and added function add_custom_script() you proposed in function.php.

    I also removed the following from function.php to make it work:

    <?php 
    function change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    ?>

    It seems to work now, you confirm this is correct?
    Thanks.

    #938474

    Hi,

    Yes, that is correct. Just one thing. Why did you use the “avia_load_shortcodes” function? Did you override a shortcode file in the child theme?

    Best regards,
    Ismael

    #938788

    Hi Ismael,
    Actually I don’t know, but I have a a ‘shortcodes’ directory in my enfod-child which contains av-helper-slideshow.php file.

    Should I leave the following in my function.php?

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    

    Thanks.

    • This reply was modified 6 years, 7 months ago by kumharas.
    #939043

    Hi kumharas,

    This last one you can leave in your functions.php since you have the shortcodes folder.

    Glad we got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #939966

    Hi Victoria,
    It works fine now.
    Thanks for your support.
    Regards.

    #940356

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #940511

    Hi Rikard,
    You can close this case.
    Thanks.

    #940952

    Hi,

    Thanks for the feedback and sorry for the trouble. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Enfold 4.2.6 update issue / broken header ans menu’ is closed to new replies.