Unable to locate simplenews block twig file

Created on 27 July 2016, over 8 years ago
Updated 17 January 2024, 11 months ago

Hello,

I am trying to change the template of the simplenews block. However, I cannot find the simplenews-block.html.twig file within the theme directory of the module as instructed in the readme.txt file:

 7. SIMPLENEWS BLOCK THEMING

    More control over the content of simplenews blocks can be achieved using
    the block theming. Theme your simplenews block by copying
    simplenews-block.html.twig into your theme directory and edit the content.
    The file is self documented listing all available variables.

    The newsletter block can be themed generally and per newsletter:
      simplenews-block.html.twig (for all newsletters)
      simplenews-block.tpl--[tid].php (for newsletter series tid)

Would anyone know where I can find the twig file so I can copy it over to my theme for modifications?

Thanks!

πŸ’¬ Support request
Status

Closed: works as designed

Component

Miscellaneous

Created by

πŸ‡¨πŸ‡¦Canada tklepsch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States BEGRAFX Laconia, New Hampshire

    @jonathanshaw

    With all due respect, how can you say it "works as designed" when the documentation mentions a twig file to update, and that file outright does not exist? I went into the https://git.drupalcode.org/project/simplenews repo, and I've gone through every version of this module from the earliest versions of the Drupal 8 update, forward, and the file simplenews-block.html.twig simply does not exist, yet for some reason through at least a half-dozen updates, this TWIG file continues to be referenced in the documentation. And even the "fixes" that some have suggested in this thread, others are saying don't work. And this is an issue that has been open in various threads since at least 2016. This isn't an issue of needing to update the documentation. The docs are referencing what is needed, to do what (based on the numerous issues and responses on this subject we've seen) a large number of us want to do. Can someone kindly explain to me why it is so difficult to write this single TWIG file? I'd do it myself, if I had any idea what it needed in the way of content. But it would seem like that should be a 10-minute project for any of the maintainers.

Production build 0.71.5 2024