Skip to content

Instantly share code, notes, and snippets.

@DeskWOW
Created August 5, 2014 14:46
Show Gist options
  • Save DeskWOW/04161fe80e0b1d4f86ac to your computer and use it in GitHub Desktop.
Save DeskWOW/04161fe80e0b1d4f86ac to your computer and use it in GitHub Desktop.
How to change article rating to "Was this helpful? Yes / No" on one line. Result: http://take.ms/SuQdD
<!-- Replace this: -->
{{ rate_block }}
<!-- with this: -->
<style>
#rate_article a {
text-decoration: none;
}
#rate_article div {
display: inline-block;
float: none;
margin: 0;
height: auto;
font-style: normal;
width: auto;
}
#rate_article span {
display: none;
}
#rate_article_container {
display: inline-block;
}
.rate-prompt {
font-weight: bold;
}
#rate_article div:not(.rate-link-down):after {
content: " / ";
}
#rate_article_container a {
background: none;
border: none;
text-indent: 0;
border-radius: 0;
height: auto;
width: auto;
float: none;
margin: 0;
font-style: normal;
}
</style>
<span class="rate-prompt">Was this helpful?</span>
{{ rate_block }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment