Question

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?

Était-ce utile?

La solution

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>
Licencié sous: CC-BY-SA avec attribution
Non affilié à drupal.stackexchange
scroll top