Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    Are you sure the 2 pages are exactly the same?

    On the “broken” page I am seeing this javascript error:

    [Error] TypeError: undefined is not an object (evaluating 'jQuery( this ) .attr( 'rel' ).indexOf')
    	(anonymous function) (main.js, line 7766)

    Which is most likely the cause for the ticker to not be working.

    I would suggest running through this FAQ https://metaphorcreations.ticksy.com/faq/1483 to see if there is a plugin/theme conflict somewhere.

    Thread Starter opticomit

    (@opticomit)

    Yes, I doublechecked the sourcecode with notepad++
    Both sites are exactly the same, except the changed post-id’s and the a-tag

    The code of the .js file you wrote is:

    // Woocommerce lightbox
    		 var ppArgs_woo = ppArgs;
    		ppArgs_woo.hook = 'data-rel';
    		jQuery("a.zoom, a[data-rel^='prettyPhoto']").prettyPhoto(ppArgs_woo);
    
    		if(Boolean(Number(js_local_vars.lightbox_post_images))) {
    			jQuery('.single-post .post-content a').has('img').each( function() {
    				if( ! jQuery( this ) .attr( 'rel' ).indexOf( 'prettyPhoto' ) === -1 ) {
    					jQuery( this ).prettyPhoto(ppArgs);
    				}
    			});
    			jQuery('#posts-container .post .post-content a').has('img').each( function() {
    				if( ! jQuery( this ).attr( 'rel' ).indexOf( 'prettyPhoto' ) === -1 ) {
    					jQuery( this ).prettyPhoto(ppArgs);
    				}
    			});
    			jQuery('.fusion-blog-shortcode .post .post-content a').has('img').each( function() {
    				if( ! jQuery( this ).attr( 'rel' ).indexOf( 'prettyPhoto' ) === -1 ) {
    					jQuery( this ).prettyPhoto(ppArgs);
    				}
    			});
    		}

    Maybe this is not compatible with ditty?
    When I comment out this part, everything seems to be ok.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    This is an issue with the script above and would probably occur with any link that contains an image. Try re-activating this code, remove DNT, and placing a link with an image in your footer and see if this error still persists (you’ll need to view your browser’s developer tools > console tab).

    Thread Starter opticomit

    (@opticomit)

    Yes you are right, the problem persists after removing the DNT, but another link with an image in the footer is displayed correctly.

    Seems like there is a problem with the avada theme and DNT. Any ideas how we can fix this?

    Plugin Author metaphorcreations

    (@metaphorcreations)

    If you place the ticker into list mode you will see the images. The reason it does not work now is that both Rotate and Scroll mode require javascript to display and work. The javascript error you currently have on your site disables the DNT javascript from working correctly.

    It is not an issue between Avada and DNT, it is just an issue with Avada and/or that script above (not sure if it’s built into Avada or if it’s an external plugin). This error would affect most other plugins that use javascript as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ditty disaperars when post contains linked image’ is closed to new replies.