• Resolved drac022

    (@drac022)


    Hola!

    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' );

    Best,
    Juan.

    Thread Starter drac022

    (@drac022)

    Nada!

    Doesn’t work!

    FYI: It’s a custom theme.

    • This reply was modified 7 years, 1 month 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?

    Best,
    Juan.

    Thread Starter drac022

    (@drac022)

    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 7 years, 1 month ago by drac022.

    Thank you for the follow-up.

    Would you please send it to [email protected] ?

    Thank you,
    Juan.

    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.

    Best,
    Juan.

    Thread Starter drac022

    (@drac022)

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

    Thanks for the follow-up ??

    That’s great news.

    Have a good day,
    Juan.

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