Forum Replies Created

Viewing 1 replies (of 1 total)
  • You can easily change card type. above is suggested method but there is another method.

    Goto Plugins->Installed Plugin->WordPress SEO-> and Click on Edit option under WordPress SEO. Look for class-twitter.php under Plugin Files.

    Hit Control+F on Chrome and enter summary on Box. It will highlight all words with summary keyword. Change Summary with summary_large_image or any other card type as given in code below. Hit save and apply for selected card. This method is not recommended but it is good for programmers…and coders.

    public function type() {
    		$type = apply_filters( 'wpseo_twitter_card_type', 'summary_large_image' );
    		if( !in_array( $type, array(  'summary_large_image', 'summary', 'photo', 'gallery', 'app', 'player', 'product' ) ) )
    			$type = 'summary_large_image';
Viewing 1 replies (of 1 total)