Support » Plugin: Copy Anything to Clipboard » Copy to Clipboard anchor id link

  • Hello

    Your plugin is very functional. Thanks for this. But I have a question.

    I don’t want to copy the text between code. I want to copy the link of the ID I assigned to the code.

    For example;

    <div id="abc">TEXT</div>

    when I click the button, which should be copied;

    https://www.website.com/post-url/#abc

    How can I do that?

    • This topic was modified 3 months, 2 weeks ago by muhiBBi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mahesh Waghmare

    (@mahesh901122)

    You can achieve this with simple shortcode.

    E.g.

    [copy text="https://www.website.com/post-url/#abc"]TEXT[/copy]

    Use it anywhere.

    By default shortcode shows the link (anchor) <a> tag.

    If you want to show the button then you can use below shortcode.

    [copy tag="button" text="https://www.website.com/post-url/#abc"]TEXT[/copy]

    For more details with video demonstration visit https://maheshwaghmare.com/doc/copy-anything-to-clipboard/#shortcode

    Thread Starter muhiBBi

    (@muhibbi)

    Wonderful.

    But, in the code you specified, text="https://www.website.com/post-url/#abc" part appears instead of TEXT part.

    Also, I added dd tag as item as selector. How can I make it automatic without using the shortcode you specified?

    • This reply was modified 3 months, 2 weeks ago by muhiBBi.
    Plugin Author Mahesh Waghmare

    (@mahesh901122)

    Can you please share the link of page? so I’ll understand the requirement and provide the solution.

    You can share website details on email: mwaghmare7@gmail.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.