How to get the Thumbs Up before the Thumbs Down?

Created on 26 September 2018, over 6 years ago
Updated 3 September 2024, 7 months ago

I am running alpha4 with the patch for 8.6.1. I also tried to run the dev branch.

Is there a way via a preprocessor or template (or UI) that I can set the Thumbs Up to come before the Thumbs Down. I want to start with positivity.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States eahonet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    Anyone in the community is allowed to answer support questions, you know.

    Does anyone want to give it a try?

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia
  • Status changed to Fixed about 1 month ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    Well to answer your question,

    The markup for the "useful" widget (thumbs up / thumbs down) is added by js/useful.js, so it cannot be changed with css or a template. You would actually have to edit js/useful.js and swap the order of the html elements with the fa-thumbs-up and fa-thumbs-down classes. Additionally, you will have to change .eq(0) and .eq(1) and each appear in exactly one place in js/useful.js. You will have to change these two lines so that 0 becomes 1 and 1 becomes 0. That should be all.

    Here's a patch that will do this on the current version of votingapi_widgets.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024