Aug 23, 2020 6:34 pm
Hello it's possible add a tooltip for UP and DOWN vote like my screenshot?
1 Reply
Aug 24, 2020 12:59 pm
Hi @xfok,
Please follow the steps below to get it resolved:
1. Put the following CSS code in the Dashboard > Forums > Settings > Styles admin page, "Custom CSS Code" textarea:
.wpf-positive::before {
content: "test";content: attr(data-tooltip);
display:none;
font-size:12px;
}
.wpf-positive:hover:before {
display: block;
}
2. Put the following JS code:
jQuery('.wpf-positive').attr('data-tooltip', 'UP');
The code should be added in the current active theme js files.
Please note this is just simple functionality. You should add the CSS code to get the exact style you want.
Below is provided the selector for the Downvote:
.wpf-negative{}