Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter maglet

    (@maglet)

    I found out …

    [dvk_social_sharing social_options=facebook]

    Plugin Author Danny van Kooten

    (@dvankooten)

    Sorry for the amazingly late reply, glad you figured that out!

    For anyone else stumbling upon the same issue, here’s a full fledged example.

    [dvk_social_sharing social_options="facebook,twitter" twitter_username="dannyvankooten" before_text="Sharing is caring!" twitter_text="Twittur" facebook_text="The Facebook"]

    Awesome, Danny, thank you! Can you also show the example using the function method? I’ve got part of it, but can’t seem to get the other options (actually trying to remove text altogether, which yes, can do via CSS…):

    <?php echo dvk_social_sharing('social_options=facebook,twitter'); ?>

    Plugin Author Danny van Kooten

    (@dvankooten)

    If you use the function straight from your template file then you can pass an array of arguments.

    Example: (Facebook only, no before text)

    <?php
    echo dvk_social_sharing(
    	array(
    		'social_options' => 'facebook',
    		'before_text' => '',
    		'facebook_text' => 'Share on Facebook'
    	)
    ;
    ?>

    The icon can be disabled globally from the plugin settings or on a per-sharing block basis using CSS. No easy option to disable the icons on an individual basis using arguments, right now. ??

    perfect, thank you! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to write arguments in shortcode?’ is closed to new replies.