WordPress.org

Forums

I Recommend This
[resolved] HTML of like button after clicking like (6 posts)

  1. Air.
    Member
    Posted 1 year ago #

    Hi:-)

    After clicking like, when number changes, HTML of like button changes from

    <a title="Recommend this" id="dot-irecommendthis-150" class="dot-irecommendthis" href="#"><span class="dot-irecommendthis-count">29</span> <span class="dot-irecommendthis-suffix"></span></a>

    to

    <a title="You already recommended this" id="dot-irecommendthis-150" class="dot-irecommendthis active" href="#">29</a>

    After page refresh it is back to normal.
    This change affects my custom styling.

    By the way - Great job on developing this plugin!
    I am recommending it with my themes:-)

    With regards:-)

    http://wordpress.org/plugins/i-recommend-this/

  2. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    @Air,
    Thank you for your kind words.

    BTW, can you please share the link to your site so I can take a look. After refresh when the data is no set, it usually would mean the cookie was not generated and the IP was not saved in the backend.

  3. Air.
    Member
    Posted 1 year ago #

    Hi

    I can't provide link for now, and also I can't recreate this issue right now, but what you wrote sound possible.

    I saw problem when I was adding below code in loop on post list.

    if( function_exists('dot_irecommendthis') ){
                    dot_irecommendthis();
                };

    So every post on post list had its own like button. After click, it returned updated number but without HTML.

    You said you know when unformatted response may occur. Is it possible that this answer would be formatted as other? Number is saved after such click so full HTML response should sound logic ;-)

    With regards.

  4. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hello, I am not sure I understood your last paragraph.

    If the number is updated then the response is working well. The return call back simply updates the number & title and changes adds "action" class to the link.

  5. Air.
    Member
    Posted 1 year ago #

    Ooo sorry I had to read wrong your answer previously and I thought you know when it is possible that it would remove formatting HTML. I will send you link by private message and please check if after click button will 'break' a bit:-) Can you provide me an e-mail address?:-)

    With regards.

  6. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • I Recommend This
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.