Closed prankyboy closed 7 years ago
Right now it's using a CSS :before
pseudo selector to set the text. If you wanted to change the text you will need to use CSS like so:
.twentytwenty-after-label:before {
content: "NEW AFTER TEXT";
}
.twentytwenty-before-label:before {
content: "NEW BEFORE TEXT";
}
I just made a PR to manage the before and after label by the title attributes on the images. No more need to change them by CSS. #59 .
I hope it helps! Bye
This is now possible using
$(".twentytwenty-container").twentytwenty({
before_label: 'Antes', // Set a custom before label
after_label: 'Después' // Set a custom after label
});
Yu - huuu on which file I can translate after - before? thx