0

I want to change the label from "Subscribe to News" to "Subscribe to News Feed" displayed with RSS icon in drupal8. Also I need to open a popup window on clicking icon.

Attaching the screenshot:

enter image description here

Any help to figure this out?

0

You can see feed-icon.html.twig

you need copy feed-icon.html.twig in core/modules/system/templates/feed-icon.html.twig to themes/yourtheme/templates/feed-icon.html.twig

in file themes/yourtheme/templates/feed-icon.html.twig

{#
/**
 * @file
 * Default theme implementation for a feed icon.
 *
 * Available variables:
 * - url: An internal system path or a fully qualified external URL of the feed.
 * - attributes: Remaining HTML attributes for the feed link.
 *   - title: A descriptive title of the feed link.
 *   - class: HTML classes to be applied to the feed link.
 *
 * @ingroup themeable
 */
#}
<a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
  {{ 'Subscribe to News Feed'}}
</a>
  • @PriyaAgarwal Please +1 to my answer :) – vinhdv Sep 10 '18 at 10:39
  • 1
    The core template uses the t filter to make the text translatable, so it would be better to include that here as well. – Alfred Armstrong Sep 10 '18 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.