Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1060497

    After updating to Enfold 451, the Google Map is no longer displayed. Reason is the file: “error404.php” in my include folder (child theme). I just deleted some code
    <p class=’entry-content’><?php _e(‘Nothing Found’, ‘avia_framework’); ?><br/>

    <?php _e('Sorry, the post you are looking for is not available. Maybe you want to perform a search?', 'avia_framework'); ?>
    </p>
    <?php
    		if(isset($_GET['post_type']) && $_GET['post_type'] == 'product' && function_exists('get_product_search_form'))
    		{
    			get_product_search_form();
    		}
    		else
    		{
    			get_search_form();
    		}
    ?>
    </section>

    That worked before I was updating to 451! Why is this conflict with the Map after the update?

    • This topic was modified 5 years, 10 months ago by frankeee.
    #1061522

    Hey frankeee,

    Where can we see the problem in question?

    Best regards,
    Rikard

    #1061566

    Hei Rikard
    as I could find out it is not the file, but the function itself:

    function change_aviajs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 3, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );

    For a closer look, you will find login credentials in private content.

    #1063499

    Hi,

    Why did you add that snippet? It’s going to disable the default shortcodes script. And I’m not sure why it would affect the maps. Do you have a test page where we can see the issue?

    Best regards,
    Ismael

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