• Resolved edodere

    (@edodere)


    Hi,

    I really love this plugin and I use on my 3 websites, but I need help to
    use different buttons sizes. I’d like to use 32px size in my single posts, while I prefer 24px version in archive pages.

    I configured my services from the options page and used “echo do_shortcode” function to add the buttons in my template.

    Is there a shortcode workaround to edit button size like the ones for the url or the title?

    [addtoany url=”http://www.example.com/page.html” title=”Some Example Page”]

    Can you help me please?

    https://ww.wp.xz.cn/plugins/add-to-any/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    A workaround for now would be to use general AddToAny HTML code in your template. For example:

    <div class="a2a_kit a2a_kit_size_24 a2a_default_style addtoany_list" data-a2a-url="http://www.example.com/page.html" data-a2a-title="Example Page">
        <a class="a2a_button_facebook"></a>
        <a class="a2a_button_twitter"></a>
        <a class="a2a_button_whatsapp"></a>
        <a class="a2a_dd" href="https://www.addtoany.com/share_save"></a>
    </div>

    Replace the 24 in a2a_kit_size_24 with your preferred pixel size.

    Thread Starter edodere

    (@edodere)

    Thanks a lot for your answer, it solved my problem.
    Anyway, now I need to go a little bit further the size matter and ask you how to make buttons to get single post dynamic url and title in archive pages.

    Is there something like:

    data-a2a-url=”[dynamic url]” data-a2a-title=”[dynamic title]”>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Use different buttons sizes via shortcode’ is closed to new replies.