Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

changing icon position, etc. #36

Open
MrMerkin opened this issue Aug 20, 2016 · 1 comment
Open

changing icon position, etc. #36

MrMerkin opened this issue Aug 20, 2016 · 1 comment

Comments

@MrMerkin
Copy link

I'm trying to change the icon position so it's to the right of the "Like" text. I modified the $output so it's wrapped in a <div> instead of a <span> and I'm using my own custom icons.

I also changed the $output so it's $count . $icon, which displays correctly by default, but when clicked it moves the icon back to the left when it shows the count.

Is there something else that needs to be modified to keep the icon on the right?

I don't see the "Unlike" text. Is that setup only for comments?

I'd also like to show the likes count by default, even if someone hasn't liked it yet.

Is it possible to show it as: Like Text -> Icon -> Count, and if it has been liked: Unlike Text -> Unlike Icon -> Count ?

Alternatively (and probably best) would be to just show the like count above this button, such as "xxx people like this" and then below I'd have the like button with Like Text -> Icon and when clicked it would show Unlike Text -> Unlike Icon without the loading text popping up. Either way, need the icon on the right ;)

any info is appreciated, and thanks for the cool tool 👍

p.s. I'm not a programmer so maybe I'm just missing the obvious stuff in the code after 18 hours of work.

@cagrioz
Copy link

cagrioz commented Jun 28, 2017

Your php is right but you must change javascript file too.
var count = response.count;
var icon = response.icon;
allbuttons.html(count+icon);

make icon+count to count+icon its will be fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants