Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I overrided the flag.html.twig in my theme, it works before Dec 6, But after I update to the newest version, my template doesn't work, even if I change code directly in the flag.html.twig.
Comments
Comment #2
socketwench CreditAttribution: socketwench as a volunteer commentedCan you provide your twig code?
Comment #3
socketwench CreditAttribution: socketwench as a volunteer commentedComment #4
tcsnhj01 CreditAttribution: tcsnhj01 commentedHi socketwench,
thanks for your reply!
In the "flag_follows" view, each "follow" and unfollow link just generate a simple link like "
<a href="/en/flag/unflag/following/17?destination=user/19&token=bcWt3epE7-xoR0gFGc247QsY35MYHaWOX_ayrpSkeIw">Follow</a>
"what I want is to add a css class(eg.btn) to this
<a>
tag, in the pre version of flag, I just override the flag.html.twig and it works fine. (this template works fine in the user profile page now , but not in the view's block.)Comment #5
tcsnhj01 CreditAttribution: tcsnhj01 commentedComment #6
joachim CreditAttribution: joachim as a volunteer commented> (this template works fine in the user profile page now , but not in the view's block.)
Can you explain more about this please? Doesn't sound right to me.
Comment #7
Berdir