• Resolved Nauno

    (@nauno)


    Hi,

    I’ve installed the pluggins, validated it , but I’v got a child theme and I do’nt know where to add this configuration lines (with my own Twitter account informations of course) :

    add_filter( 'twitter_cards_properties', 'twitter_custom' );

    function twitter_custom( $twitter_card ) {
    if ( is_array( $twitter_card ) ) {
    $twitter_card[‘creator’] = ‘@niall’;
    $twitter_card[‘creator:id’] = ‘1085’;
    }
    return $twitter_card;
    }

    Please please please help me ^^
    (N00b inside dsl)

    https://www.ads-software.com/plugins/twitter-cards/

Viewing 1 replies (of 1 total)
  • Plugin Author Niall Kennedy

    (@niallkennedy)

    WordPress plugins use filters to allow implementing sites to customize output in code.

    If you would like to change or add Twitter card markup provided by this base plugin you should act on the twitter_cards_properties filter. Some people find editing their theme’s functions.php file easiest. You can also add your own plugin to extend the behaviors of this plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘configuration’ is closed to new replies.