Support » Plugin: Nice Likes » Custom location don’t work

  • Resolved drac022



    Before and after locations works fine, but when I select “custom location” and I instert the code <?php do_action( ‘nice_likes_custom’ ); ?> where I want, the counter don’t appear.

    Nothing breaks in console…

    What I’m doing bad? Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Thank you for writing. I hope you are doing well.

    Have you tried adding this instead?

    do_action( 'nice_likes_custom_location' );



    Doesn’t work!

    FYI: It’s a custom theme.

    • This reply was modified 2 years, 9 months ago by drac022.

    Thanks for the follow-up.

    Ok, where are you adding the code? in a particular template? single template or another?

    Do you have the site online to take a look?


    I’m adding the code in a single template.

    It’s a private site. Where can I send you login access?

    • This reply was modified 2 years, 9 months ago by drac022.

    Thank you for the follow-up.

    Would you please send it to ?

    Thank you,

    Hola Edu!

    Thanks for sharing your details with us.

    Please, check the template hierarchy of your theme, it seems that the single.php template is not executed when visiting the link you’ve shared with me. For example, if I add an HTML comment it is not rendered in the HTML. I can see you have different ‘single-*.php’ files in your theme. Please be sure that you add the action in the one that is actually being executed.


    Finally, the last update of the plugin resolve the unkown problem.

    Thanks for the follow-up 🙂

    That’s great news.

    Have a good day,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom location don’t work’ is closed to new replies.