• Resolved lukephills

    (@lukephills)


    Hi,

    Is it possible to echo out the service name as text as well as the image? For instance I want for each service to output something like:

    <a href="facebook.com" class="facebook><img src="facebook.png"><span>Facebook</span></a>

    I know you can use ‘html_wrap_open’ & ‘html_wrap_close’ but is there a way to get the current $service[‘name’] and also echo it inside the <a> tag?

    Thanks

    https://www.ads-software.com/plugins/add-to-any/

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

    (@micropat)

    Hi Luke, thanks for answering this topic.

    There’s currently not a PHP method for inlining service names partly because CSS can do the job so well:
    .addtoany_list > a:after { content: attr(title); }

    Can you get by without the span?

    Thread Starter lukephills

    (@lukephills)

    Ah yes this should work just fine. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert service name as text inside anchor tag?’ is closed to new replies.