Forum Replies Created

Viewing 30 posts - 1 through 30 (of 263 total)
  • Author
    Posts
  • in reply to: Remove fade in effect whem page load #1039731

    Hi,

    Thank you. It was effectively action of a cache plugin.

    Thanks

    in reply to: BLOG with BUG – infinite Page Preloading #1029491

    HI,

    PROBLEM SOLVED!

    It is an incompatibility with the plugin: Featured Image From URL

    That’s the tip.

    Thank you

    in reply to: How force user browser to refresh the FLATICON cache? #1025021

    Hi Victoria,

    You can see in this private link.

    The problem only occurs in mobile phones, when store the cache of some old version of the icons.

    Thanks

    in reply to: Edit comments.php file to show pagination in PAGE´s #1024773

    Hi,

    Can be closed. Thanks

    in reply to: Edit comments.php file to show pagination in PAGE´s #1024594

    Hello,
    Sorry, I created a duplicate topic. Please delete the redundant.

    About the problem I solved the same just adding a copy of the comments.php with the modification in the root of the child (wp-content/themes/enfold-child/)

    Thank you

    in reply to: Edit comments.php file to show pagination in PAGE´s #1024593

    Hello,
    Sorry, I created a duplicate topic. Please delete the redundant.

    About the problem I solved the same just adding a copy of the comments.php with the modification in the root of the child (wp-content/themes/enfold-child/)

    Thank you

    in reply to: How force user browser to refresh the FLATICON cache? #1024326

    One more note:
    I’m using the code below to render the icon on the screen.

    <span class="icon-logout"></span>
    <style>.icon-access :before {
    font-family: 'flaticon';
    content: '\f115';  
    }</style>
    <span class="icon-access av-icon-char av-icon-char-custom" aria-hidden="true" data-av_icon=""></span>
    <style>.icon-access:before {
    font-family: 'flaticon';  
    content: '\f115';           
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: none;
    }</style>

    The two options results in the cache problem even when I rename the icon directory (avia_fonts) the icon appears on the phone screen!

    in reply to: How force a favicon refresh? #1024139

    Hi,

    Yes, it can be closed.

    Thanks!

    in reply to: How force a favicon refresh? #1024096

    Hi Nikko,

    Thanks.
    I will open a new thread because the problem now is related with ICONS, especially a new group of flat icons

    Best regards,

    in reply to: How force a favicon refresh? #1023828

    Hi,

    Here are the steps I’ve taken:

    1 – Clear all caches in the backoffice.
    2 – Deactivate and reactivate all plugins

    It did not help.
    To have the icons appear correctly:
    – Computer: it is necessary to do CTRL + F5
    – Mobile: no use reloading the screen, it is necessary to clear the browsing history

    Obviously a visitor will not be cleaning up their browsing history to see an icon correctly.
    That is why I believe that the only way is that I referred to:

    force browsers to download a new version using the link tag and a querystring on your filename

    Any suggestion?

    in reply to: Alert when popup is closed #1016721

    Hi Mike,

    The problem was 100% resolved.

    Thanks

    in reply to: Close popop/modal using back button without changing url #1016720

    Hi,

    The problem was 100% resolved.
    Thank you for all the suggestions that have been given.

    Thanks

    in reply to: Alert when popup is closed #1016169

    Ho Mike,

    The problem is that this form triggers the alert just in case you use a (X) button to close the popup.

    If you press ESC or click on the overlay it will not fire.

    Best regards,

    • This reply was modified 6 years, 2 months ago by CloudChoice.
    in reply to: Close popop/modal using back button without changing url #1016037

    Hi,
    Summarizing, the user can leave the MODAL of 4 different ways:

    1 – Clicking the X
    2 – Clicking on the background (overlay)
    3 – Pressing ESC on keyboard
    4 – Clicking on back button in browser / mobile

    The following code works for the fourth option (4), but when using the other options to exit MODAL it leaves a url in the browsing history.

    <script type="text/javascript">
    (function($) {
                $(document).ready(function() {
                    function zoomEnabled() {
                        var $zoom =  $('[rel="lightbox"]').length > 0;
                        backDisable($zoom);
                    }
                    function backDisable($zoom) {
                        if($zoom) {
                          if(window.history&&window.history.pushState) {
                            window.history.pushState(null, null, '');
                            window.onpopstate = function() {
                                $('.mfp-close').trigger('click');
                            }
                            } 
                        }  
                    }
                    $(document).on('click', '.lightbox-added', function() {
                        zoomEnabled();
                    });
                 });
            })(jQuery);
    </script>

    The negative point is:

    If you have several MODAL to open at the same URL, the user may have a browsing history filled with the current url, and it is not possible for him to leave the page just by pressing the back button.
    Most users in such cases only close the browser window where the URL was and thus leave the site.

    The good example are e-commerce portals where the use of the modal to see images of the products is intensive.

    EXAMPLE MODAL USAGE

    In this link when the modal is triggered (window.history.pushState) inserts the URL in the history of the navigation, but whichever way to close the modal it “removes” the url from the history.
    Since it is not possible to delete history elements, I assume it was used (window.history.go (-1)).

    • This reply was modified 6 years, 2 months ago by CloudChoice.
    in reply to: Close popop/modal using back button without changing url #1015705

    Hi Guenni007,

    I did some modifications and now is working.

    The challenge now is to make the methods to close the popup on the screen (by clicking on the x or the light box) to return one level in the history.
    Preventing from harming user navigation, by creating successive equal entries of history. You’re having the same problem if you check your browsing history.

    – Also insert a small failback for compatibility issues in (window.history.pushState).

    https://developer.mozilla.org/en-US/docs/Web/API/History_API#Browser_compatibility

    add_action('wp_footer', 'ava_custom_disable_back');
    function ava_custom_disable_back(){
    	?>
    	<script type="text/javascript">
    		(function($) {
                $(document).ready(function() {
                    
                    function zoomEnabled() {
                        var $zoom =  $('[rel="lightbox"]').length > 0;
                        backDisable($zoom);
                    }
    
                    function backDisable($zoom) {
                        if($zoom) {
                          if(window.history&&window.history.pushState) {
                            
                            window.history.pushState(null, null, '');        
                            window.onpopstate = function() {
                                $('.mfp-close').trigger('click');
                            };
                  
                            $().magnificPopup({
                                    type:'inline',
                                    callbacks: {
                                        open: function() {
                                            $.magnificPopup.instance.close = function() {
                                                window.history.go(-1)
                                                $.magnificPopup.proto.close.call(this);
                                                
                                            };
                                        }
                                    }
                                });
    
                            } 
                        }  
                    }
    
                    $(document).on('click', '.lightbox-added', function() {
                        zoomEnabled();
                    });
                    
                });
            })(jQuery);
    	</script>
    	<?php
    }
    
    in reply to: Close popop/modal using back button without changing url #1015358

    Hi Guenni007,

    Thanks, but this was my first line of action, it also did not work properly.

    in reply to: Close popop/modal using back button without changing url #1015303

    Hi,

    It may be that I’m talking nonsense, but I inserted the class .mfp-zoom-out-cur manually but still, the script did not run.

    in reply to: Close popop/modal using back button without changing url #1015225

    Hi Ismael,

    I checked in Theme Updates:

    No Updates available.
    You are running the latest version! (4.4.1)

    I am using these other scripts in functions, but I do not believe they are affecting something.

    // Modal with vídeo
    
    function change_magnific_popup_iframe_setting(){
    ?>
    <script>
    jQuery(window).load(function(){
    	jQuery('a[href*="youtube.com/watch"], .frame').magnificPopup({
    	   type: 'iframe',
    	   iframe: {
    
    markup: '<div class="mfp-iframe-scaler fram">'+
                '<div class="mfp-close"></div>'+
                '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
              '</div>',
    
    	     patterns: {
    	       youtube: {
    	       	index: 'youtube.com', 
    	       	id: 'v=', 
    	       	src: '//www.youtube.com/embed/%id%?rel=0&autoplay=1'
    	       }
    	     }
    	   }   
    	});      
    });
    </script>
    <?php
    }
    add_action("wp_footer", "change_magnific_popup_iframe_setting");
    
    // Modal para button and links
    
    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.open-popup-link-button a, .open-popup-link, #menu-item-6276 a').magnificPopup({
    type:'inline',
    removalDelay: 50,
     callbacks: {
        beforeOpen: function() {
        this.st.mainClass += ' ' + this.st.el.attr('data-effect');
    }
      },
    midClick: true 
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');
    
    
    in reply to: Close popop/modal using back button without changing url #1015054

    Hello,

    I inserted the same in functions.php in a child theme.

    The same has not resulted as can be seen in the videos in the link sent. The back button continues to result in returning to a previous page.

    Thanks

    in reply to: Close popop/modal using back button without changing url #1014866

    Hi,

    Yes, browser button back and in many mobiles a hard button calling the browser back button .

    I tried the script below without success.

    add_action('wp_footer', 'ava_custom_disable_back');
    function ava_custom_disable_back(){
    	?>
    	<script type="text/javascript">
    		(function($) {
                $(document).ready(function() {
                    function zoomEnabled() {
                        var $zoom = $('body').is('.mfp-zoom-out-cur');
                        backDisable($zoom);
                    }
    
                    function backDisable($zoom) {
                        if($zoom) {
                            window.history.pushState(null, "", window.location.href);        
                            window.onpopstate = function() {
                                window.history.pushState(null, "", window.location.href);
                                $('.mfp-close').trigger('click');
                            };
                        }  
                    }
    
                    $(document).on('click', '.lightbox-added', function() {
                        zoomEnabled();
                    });
                });
            })(jQuery);
    	</script>
    	<?php
    }
    in reply to: Close popop/modal using back button without changing url #1014713

    Hi Ismael,

    Thank you for your attention.

    I tried the script informed, even with some variations of syntax, but no result.

    The back button continues to result in returning to a previous page instead of just closing the modal.

    in reply to: Close popop/modal using back button without changing url #1014661

    HI,

    Thanks for the quick response.

    I refer to the back button, standard on mobile devices, or the browser’s back buton on desktops.
    Users usually close the modal using the physical back button of the cell phone and not the clicking on the screen.

    For example:

    <a href="https://vimeo.com/123456" rel="lightbox"><span style="font-size: 1.4em;">SHOW VIDEO</span></a>

    Will open a Lightbox with a video. But the user, especially of cell phones, tends to close it by clicking on the cell’s return button, and consequently ends up leaving the page where it was.

    I tried this little jQuery cheat, but it’s far from ideal.

    <!-- Button back Close popup--> 
    <script type="text/javascript"> jQuery(document).ready(function() {
    	if(window.history&&window.history.pushState) {
    		window.history.pushState(null, null, '');
    		jQuery(window).on('popstate', function() {
    			jQuery.magnificPopup.close()
    		}
    		)
    	}
    }
    ) 
    </script>

    Any suggestion?

    in reply to: Remove automatic tags of Codeblock #1009325

    Hi,

    Unfortunately without success.

    I put snippets of code that is in CODEBLOCK.
    It is easy to see that with each simple click on the Upgrade button of the page (without changing anything at all) the tags will multiply (1,2,4,8,16,32,64,128 …) after some modifications, the page does not open due to lack of memory and consumes more than 1Gb to be executed.

    THE ORIGINAL CODE

    box: '<div class="fileuploader-items">' +
    						  '<ul class="fileuploader-items-list">' +
    								'<li class="fileuploader-thumbnails-input"><div class="fileuploader-thumbnails-input-inner thumbnail_after exame_gravidez_box">+</div></li>' +
    						  '</ul>' +
    					  '</div>',
    				item: '<li class="fileuploader-item">' +

    After the first save

    			
    				box: '</p>
    <div class="fileuploader-items"><p>' +
    						  '</p>
    <ul class="fileuploader-items-list">' +
    								'</p>
    <li class="fileuploader-thumbnails-input">
    <div class="fileuploader-thumbnails-input-inner thumbnail_after exame_gravidez_box">+</div>
    </li>
    <p>' +
    						  '</ul>
    <p>' +
    					  '</div>
    <p>',
    				item: '</p>
    <li class="fileuploader-item">' +

    After the second save

    
    				box: '</p>
    <p>
    </p>
    <div class="fileuploader-items">
    <p>' +
    						  '</p>
    <p>
    </p>
    <ul class="fileuploader-items-list">' +
    								'</p>
    <p>
    </p>
    <li class="fileuploader-thumbnails-input">
    <br />
    <div class="fileuploader-thumbnails-input-inner thumbnail_after exame_gravidez_box">+</div>
    <p>
    </li>
    <p>
    </p>
    <p>' +
    						  '</ul>
    <p>
    </p>
    <p>' +
    					  '</div>
    <p>
    </p>
    <p>',
    				item: '</p>
    <p>
    </p>
    <li class="fileuploader-item">' +

    After the third save

    
    				box: '</p>
    <p>
    </p>
    <div class="fileuploader-items">
    <p>' +
    						  '</p>
    <p>
    </p>
    <ul class="fileuploader-items-list">' +
    								'</p>
    <p>
    </p>
    <li class="fileuploader-thumbnails-input">
    <br />
    <div class="fileuploader-thumbnails-input-inner thumbnail_after exame_gravidez_box">+</div>
    <p>
    </li>
    <p>
    </p>
    <p>' +
    						  '</ul>
    <p>
    </p>
    <p>' +
    					  '</div>
    <p>
    </p>
    <p>',
    				item: '</p>
    <p>
    </p>
    <li class="fileuploader-item">'

    After the fourth save

    box: '</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <div class="fileuploader-items">
    <p>
    </p>
    <p>
    </p>
    <p>' +
    						  '</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <ul class="fileuploader-items-list">' +
    								'</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <li class="fileuploader-thumbnails-input">
    <br />
    <br />
    <br />
    <div class="fileuploader-thumbnails-input-inner thumbnail_after exame_gravidez_box">+</div>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </li>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>' +
    						  '</ul>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>' +
    					  '</div>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>',
    				item: '</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <li class="fileuploader-item">' +
    in reply to: Remove automatic tags of Codeblock #1008991

    Appreciate,

    However the links I’ve seen and one of the solutions is 2012, it does not work and makes the situation worse generating more <p> tags.

    add_filter( 'the_content', 'wpautop' , 99);

    Any other solution?

    in reply to: Modifying Posts, Tags, Categories #987916

    Hi Victoria,

    Thanks for the quick reply. Unfortunately it did not work.

    if( !is_single(array(15255)) || is_archive() || is_tag() ) return;only works on posts

    if( !is_single(array(15255)) || !is_archive() || !is_tag() ) return;does not work in any

    Any other tips?
    Thank you

    in reply to: Fixed menu header using ava_after_main_container #986021

    Hi,

    Can anybody help me?

    in reply to: Fixed menu header using ava_after_main_container #985170

    Now I using:

    //Add fixed menu to all (ID 15255) POSTS
    
    add_action( 'ava_after_main_menu', 'ava_after_main_container_mod', 10 );
    function ava_after_main_container_mod() {
    if( !is_single(array(15255)) || is_archive() || is_tag() ) return;
    	$output  = '';
    	$output .= do_shortcode("
    [av_section min_height='custom' min_height_px='100px' padding='no-padding' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='bback' color='main_color' background='bg_color' custom_bg='#32a5d2' background_gradient_color1='' background_gradient_color2='' background_gradient_direction='vertical' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' av_element_hidden_in_editor='0' av_uid='av-32zbqxs' custom_class='']
    
    [av_textblock wrapper_element='' wrapper_element_attributes='' av_uid='av-2gpcv34' custom_class='']
    [av_sidebar widget_area='HAMBURGUER' av_uid='av-bm8mys']
    <div class='centrotitulo'>[page_title]</div>
    [/av_textblock]
    [/av_section]
    [av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='ajuste-espaco' admin_preview_bg='' av_uid='av-1ofdwyo']
    
    ");
    	echo $output;
    }

    BUT no solution to the problem at the moment.

    in reply to: Fixed menu header using ava_after_main_container #984130

    Hi guys,

    Would anyone have any suggestions?

    in reply to: Fixed menu header using ava_after_main_container #982058

    Hi Nikko,

    Follow the data to FTP access.

    Thanks

    in reply to: Fixed menu header using ava_after_main_container #981083

    Hello,

    I tried unsuccessfully to allocate the footer, any suggestions?

Viewing 30 posts - 1 through 30 (of 263 total)