• Resolved csandreas1

    (@csandreas1)


    The zoom only works when i am logged in otherwise the images are not zooming and only the icon appears, why is that?

    Here is how my code is:

    if ( has_post_thumbnail() ) {
    
    	if ( ( function_exists('cc_zoom_featured_image') ) && ( is_singular( 'post' ) ) ) {
    
    		echo do_shortcode( '[zoom zoomin=2]' );
    
    	} else {
    		echo ! is_single() ? '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' : '';
    		the_post_thumbnail( 'tyche-blog-post-image' );
    		echo ! is_single() ? '</a>' : '';
    	}

    }

    • This topic was modified 6 years, 10 months ago by csandreas1.
    • This topic was modified 6 years, 10 months ago by csandreas1.
    • This topic was modified 6 years, 10 months ago by csandreas1.
    • This topic was modified 6 years, 10 months ago by csandreas1.
    • This topic was modified 6 years, 10 months ago by csandreas1.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author cubecolour

    (@numeeja)

    Which file did you add that code to?

    What icon appears?

    You have linked to a blog page, but the plugin was designer for single posts only – can you link to a post where you would expect to see the plugin in action.

    You appear to be using a cache/minify plugin. Is it any different when that is not active?

    Thread Starter csandreas1

    (@csandreas1)

    Here is the link of the page that the plugin should be in action:
    https://frix-cy.com/2018/01/27/frix-website/
    Note that it works if you login.

    I will test to disable some cloudflare and plugin stuff and inform you

    Note that i am the guy from previous post in your forum so it is the file you had told me before ?? Tyche theme remember?

    • This reply was modified 6 years, 10 months ago by csandreas1.
    • This reply was modified 6 years, 10 months ago by csandreas1.
    Thread Starter csandreas1

    (@csandreas1)

    and yes.. it works when i disable wp-rocket plugin

    Thread Starter csandreas1

    (@csandreas1)

    Here are the settings i use for wp-rocket

    Thread Starter csandreas1

    (@csandreas1)

    I disabled javascript minification on the file optimization option, since i already minify that from cloudflare so i don’t need the plugin to do the same thing. Now it works fine

    • This reply was modified 6 years, 10 months ago by csandreas1.
    Thread Starter csandreas1

    (@csandreas1)

    Why is that caching plugin making those problems though?

    • This reply was modified 6 years, 10 months ago by csandreas1.
    • This reply was modified 6 years, 10 months ago by csandreas1.
    Plugin Author cubecolour

    (@numeeja)

    I have used a different plugin to successfully minify js on a site which includes the featured image zoom plugin without any issue. I have not used wp-rocket so I don’t know how it differs when it minifies scripts.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Images are not zoomable on non logged in users’ is closed to new replies.