Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: How to disable menu delay on hover and on unhover #1278804

    Mike, you are a miracle worker! Your solution worked perfectly.
    I never would have thought that the code for normal dropdowns would be within the \js\avia-snippet-megamenu.js file.

    Good to know and Thanks!

    in reply to: How to disable menu delay on hover and on unhover #1277817

    OK, I figured out how to remove the delay from the megamenu!

    it was LINE 26. I set it from 300 to 0.
    delay:0

    I also edited the functions.php file to simply:

    wp_dequeue_script('avia-megamenu');
    wp_enqueue_script('avia-megamenu', get_stylesheet_directory_uri().'/js/avia-snippet-megamenu.js', array('avia-default'), '', true);

    Without it being within a function and that worked.
    Now my only issue is the mouseout delay on normal dropdown menus. Can’t find that anywhere.

    in reply to: How to disable menu delay on hover and on unhover #1277816

    I’m getting closer to a solution.

    I discovered that the delay and transitions for the mega menu are in /js/avia-snippet-megamenu.js

    I still need it for normal dropdown menus, but this is a start.

    Line 176

    			//bind event for mega menu
    			megaItems.each(function(i){
    
    				$(this).hover(
    
    					function()
    					{
    						delayCheck[i] = true;
    						setTimeout(function(){megaDivShow(i); },options.delay);
    					},
    
    					function()
    					{
    						delayCheck[i] = false;
    						setTimeout(function(){megaDivHide(i); },options.delay);
    					}
    				);
    			});

    How do I remove the delay without breaking the code?

    I’ll also need to copy this file to my child theme so future updates won’t be overwritten. I found this to put in my functions.php file

    /* custom avia-snippet-megamenu.js */
    add_action( 'wp_enqueue_scripts', 'wp_change_megamenu_script', 100 );
    function wp_change_megamenu_script() {
        wp_dequeue_script('avia-megamenu');
        wp_enqueue_script('avia-megamenu', get_stylesheet_directory_uri().'/js/avia-snippet-megamenu.js', array('avia-default'), '', true);
    }

    Sadly, the above code doesn’t work. When I clear cache, etc and view source and still see the original avia-snippet-megamenu.js being referenced and not my custom one within my child theme.

    Compression is disabled BTW.

    Any idears?

    Nevermind, I figured it out on my own. Probably could use some validation and cleaning up of the URL (in case there is extra formatting in the post content area), but here’s a solution for anyone else interested.

    Open up functions-enfold.php in parent theme and copy the entire function that starts with:

    if( ! function_exists( ‘avia_ajax_search’ ) )

    Paste this function into your child theme’s functions.php file and then make this tiny modification:

    replace this:

    $link = apply_filters( 'av_custom_url', get_permalink( $post->ID ), $post );

    with this:

    $link = apply_filters( 'av_custom_url', get_permalink( $post->ID ), $post );
    /*  modify link to use the the actual URL specified within the content area for "LINK" post format  */
    if ( get_post_format( $post->ID ) == "link" ) {
        $link = strip_shortcodes($post->post_content);
    }

    if anyone else has a more elegant solution, I’d love to hear it. I would prefer to not have to copy the entire avia_ajax_search function, but this works for now.

    Hey Victoria,

    I am a web developer. I would just need the information on the parameters I can use (and how they work) for the avf_ajax_search_query() function. Does this information exist somewhere? If this function is not capable of altering the permalink for a search result, would it work to copy (and alter) the avia_ajax_search function from the functions-enfold.php file in the parent theme and place in my child theme’s functions.php file?

    in reply to: Facebook likebox widget not displaying #1167420

    You can close it. Thanks.

    in reply to: social buttons broken with WP 5.3.1 update #1165745

    OK, I created a CSS fix to the problem of missing social media icons and blog post sharing icons! It’s not all of them, but most.

    Add the following to your Quick CSS in Enfold Child Theme Options > General Styling

    
    /* enfold social media icons fix */
    .social_bookmarks_twitter a::before, .av-social-link-twitter a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_facebook a::before, .av-social-link-facebook a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_linkedin a::before, .av-social-link-linkedin a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_pinterest a::before, .av-social-link-pinterest a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_tumblr a::before, .av-social-link-tumblr a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_reddit a::before, .av-social-link-reddit a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_vk a::before, .av-social-link-vk a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_gplus a::before, .av-social-link-gplus a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_mail a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_dribble a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_youtube a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_instagram a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    .social_bookmarks_vimeo a::before {
        font-family: 'entypo-fontello';
        content: '';
    }
    
    in reply to: social buttons broken with WP 5.3.1 update #1165638

    This is a major issue. What is the normal ETA on an Enfold update for WordPress compatibility?

    Modifying core WordPress files is not an option for various reasons. Not to mention most security plugins will flag this as a hacking attempt.

    How about a simple script to add to the functions.php file to temporarily fix the issue until a new Enfold release?

    in reply to: Facebook likebox widget not displaying #1165636

    Looks like it was my browser’s default security settings (latest version of Firefox) does not allow the likebox to display. If I disable tracking protection, then the box displays.

    in reply to: enfold column link to youtube lightbox #1130162

    Adding &iframe=true to the end of the youtube URL did not work. Still launching in new tab.

    Complete URL example:
    https://www.youtube.com/watch?v=XXXXXXXXXXX&iframe=true

    I checked the source code and see this:

    <div class="flex_column av_one_half avia-full-stretch no_margin flex_column_table_cell av-equal-height-column av-align-middle av-zero-column-padding avia-link-column av-column-link first avia-builder-el-5 el_after_av_hr el_before_av_one_half equal-height " style="background:url(https://xxxxx.jpg) center center no-repeat ; border-radius:0px; " data-link-column-url="https://www.youtube.com/watch?v=XXXXXXXXXXX&iframe=true"><a class="av-screen-reader-only mfp-iframe lightbox-added" href="https://www.youtube.com/watch?v=XXXXXXXXXXX&iframe=true">Follow a manual added link</a><div class="avia-image-container av-styling-no-styling av-desktop-hide av-medium-hide avia-builder-el-6 avia-builder-el-no-sibling avia-align-center " itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject"><div class="avia-image-container-inner"><div class="avia-image-overlay-wrap"><img class="avia_image " src="https://xxxxx.jpg" alt="" title="" itemprop="thumbnailUrl"><span class="image-overlay overlay-type-video" style="left: -5px; top: 0px; overflow: hidden; display: block; height: 348px; width: 551px;"><span class="image-overlay-inside"></span></span></a></div></div></div></div>

    This reply has been marked as private.

    I am also having the exact same problem. The “Saving didn’t work!…” pops up IMMEDIATELY when I click “Save All Changes”. No loading or anything. It’s instant.

    I’ve had the same hosting account for quite a while and never had any problems until after upgrading wordpress and enfold, so I chose to do a fresh install of both WordPress and Enfold –disabled all plugins and still have the same problem.

    Everything else within WordPress works. Just saving the Enfold child theme settings fails every time.

    Wordpress Version 5.2.1
    Enfold Version 4.5.7
    PHP Version 7.1.14
    Web Host: Hostgator
    Hosting plan: Shared / Baby with cPanel

    Set Permissions to 777 on the following folder and all files within it:
    wp-content/uploads/dynamic_avia

    Contents of web root .htaccess file (also deleted the .htaccess file and re-saved permalinks to recreate it) :
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    There are no other .htaccess files (not in /wp-admin folder).
    No robots.txt file in web root

    Added to the following to wp-config.php
    define (‘WP_MEMORY_LIMIT’, ‘256M’);

    No errors showing in error logs.

    Please help!

    I downgraded my WordPress to version 4.9.8 using the WP Downgrade plugin and everything is now working the way it did before. It’s a shame this is not working out of the box.

    I can’t blame Enfold for this, it’s more of a WordPress issue. WordPress finally gets on board with developing a better editor only to have it not behave with others. I’m sure this will eventually get sorted out, but until then I’m sticking with an old version of WordPress. Not my favorite solution, but it works for now.

    Would love to hear from someone at Enfold to chime in with an official workaround or update.

    in reply to: ava_after_main_container hook no longer works #944726

    Nevermind I figured it out. I was using “The Events Calendar” plugin and “Events List” widget within the widget area “Below Menu”. Within the widget, I had “Show widget only if there are upcoming events” checked. I didn’t realize this would remove the entire widget area from the site. I unchecked it and now my widget area is back on the site!

    Hope this proves to be useful for anyone using the events list widget!

    in reply to: ava_after_main_container hook no longer works #944705

    Details provided (private)

Viewing 15 posts - 1 through 15 (of 15 total)