-
AuthorPosts
-
April 3, 2018 at 11:28 am #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.April 3, 2018 at 2:03 pm #936559Hey 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,
VictoriaApril 3, 2018 at 5:20 pm #936665Hi 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, 8 months ago by kumharas.
April 5, 2018 at 4:37 am #937424Hi 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,
VictoriaApril 5, 2018 at 10:14 am #937573Hi 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.
April 5, 2018 at 1:16 pm #937710Hi 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,
VictoriaApril 5, 2018 at 3:34 pm #937783HI 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.April 7, 2018 at 4:16 am #938474Hi,
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,
IsmaelApril 8, 2018 at 3:22 pm #938788Hi 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, 8 months ago by kumharas.
April 9, 2018 at 10:32 am #939043Hi 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,
VictoriaApril 10, 2018 at 6:18 pm #939966Hi Victoria,
It works fine now.
Thanks for your support.
Regards.April 11, 2018 at 10:13 am #940356Hi,
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,
RikardApril 11, 2018 at 2:16 pm #940511Hi Rikard,
You can close this case.
Thanks.April 12, 2018 at 1:52 pm #940952 -
AuthorPosts
- The topic ‘Enfold 4.2.6 update issue / broken header ans menu’ is closed to new replies.