Append User Like Status to ULike Container Element
-
I’m trying to style the ULike button/text to match my theme and it requires me to manipulate the entire ULike container based on whether or not the user has liked the post.
Currently, the ULike element is returned like
<div id="wp-ulike-'.$post_ID.'" > <div class="counter">'.$counter.'</div> </div>
I would like the element to return as
<div id="wp-ulike-'.$post_ID.'" class="' . $user_status .'"> <div class="counter">'.$counter.'</div> </div>
Where $user_status is either “like” or “dislike”. I’ve been looking at manipulating the source code but I don’t want this to be overwritten with a future update. It would be great if you could implement this in the next update.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Append User Like Status to ULike Container Element’ is closed to new replies.