Home Forums Art HTML Theme Page loading

This topic contains 3 replies, has 2 voices, and was last updated by  BWSM 1 week, 2 days ago.

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

    pandapanda
    Participant

    Hi, I’m using the masonry grid list integrated into a already existing website. When load the page containing the masonry grid the pageloading text shows up, which I like. But when I click the link of one of the grid items, page loading text shows up again, eventhough the link is pointing to a page that is independent from the art HTML theme. Is there a way to keep the loading feature when accessing the masonry grid but disable it when one clicks on the links of the masonry grid items?

    #17073

    BWSM
    Keymaster

    Hi,

    Please look for line1447 in /js/custom.theme.js, remove the codes:

    if(themeData.pageLoading.length){
    			
    			//Logo
    			$('#logo a,#logo-footer a').click(function(){
    				themeData.fnPageLoadingEvent($(this));
    				return false;
    			});
    			
    			// Gallery, Post 
    			$('.arrow-item,.article-cate-a').click(function(){
    				themeData.fnPageLoadingEvent($(this));
    				return false;
    			});
    		
    			// Archive, News unit
    			$('.archive-item > a.ux-lazyload-wrap,.arvhive-tit > a,.archive-arrow,.grid-meta-a,.gird-blog-tit-a').click(function(){
    				themeData.fnPageLoadingEvent($(this));
    				return false;
    			});
    		
    			/** Modules */
    			$('.entry a,.pagebuilder-wrap a').click(function(){
    				if($(this).is('.lightbox')||$(this).is('.lightbox-item')){}else{
    					if($(this).attr('target')=='_blank'){}else{
    						themeData.fnPageLoadingEvent($(this));
    						return false;
    					}
    				}
    			});
    		
    		} 

    Regards!

    #17074

    pandapanda
    Participant

    Hi just looked at my /js/custom.theme.js, file that i downloaded about 1 or 2 weeks ago.

    Line 1447, starts with this:
    pageYScroll = window.pageYOffset || document.documentElement.scrollTop,

    and also searching for the lines of code did not yield any result.

    #17081

    BWSM
    Keymaster

    It is 1447, I don’t know why there is not the codes, it should be. Please try to search “if(themeData.pageLoading.length){”

    If still can not find, please paste your page URL.

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

You must be logged in to reply to this topic.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!