• Resolved fotobeam

    (@apachelance)


    Hi,

    First: great plugin. I just installed it and it works fine. One question regarding Twitter.

    Twitter is enabled via Jetpack widget in the right column of my page. It is correctly recognized by Complianz. However it is not blocked. Additionally I tried adding URLs to the script center without success, e.g. platform.twitter.com, syndication.twitter.com etc. (But according to your documentation they shoule be blocked already). Cache plugin is offline.

    Any idea?

    Thanks,
    Andreas

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Twitter is not blocked out of the box because it is loaded through a custom javascript from JetPack. You can block it by blocking the twitter javascript in the script center:

    build/twitter-timeline.min.js

    To get a placeholder for this feed, you can try this filter:

    add_filter('cmplz_placeholder_markers', 'cmplz_jetpack_placeholders');
    function cmplz_jetpack_placeholders($tags){
    	$tags['twitter'] =  'widget_twitter_timeline';
    
    	return $tags;
    }

    But I haven’t been able to test it yet, I’ll check that tomorrow. We’ll add twitter for JetPack to our integrations list soon.

    Let me know if that helps!

    Thread Starter fotobeam

    (@apachelance)

    Adding the javascript you mentioned was the solution. This works without placeholder.

    Great…thanks for the fast reply!

    Andreas

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Great!

    The placeholder is not really necessary, but can give a more “slick” look, like here:
    https://demo.complianz.io/placeholders/twitter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twitter widget not blocked’ is closed to new replies.