On the comment.html.twig i have the default {{ user_picture }} for the author of the comment but it wont display the image. The author image shows under the user page without a problem and it is enable on theme global settings for the comment section but it will not display under comments neither for content types nor forums.

Comments

wolfhowling created an issue. See original summary.

samuel.mortenson’s picture

Assigned: Unassigned » samuel.mortenson
wolfhowling’s picture

In the latest 8.x-5.x-dev it shows the picture on the comments when using the theme but when a sub-theme is created it still does not show the picture i think the settings do not transfer properly to the created sub-theme.

I created the sub-theme using drush

samuel.mortenson’s picture

I believe that the code in review at #2684161: Make Top Bar sticky on small, add language switcher option fixes this issue. Will confirm once that issue is closed.

wolfhowling’s picture

That is for version 6 rather than version 5 but either ways i tried version 6 with that patch applied and the same thing happens under the main theme the picture shows under the sub-theme it does not.

I think it is due in part to the global options for pictures in comment and post not being present in the sub-theme like they are on drupal 7.

Update: I fixed the issue as i suspected in the info.yml file under features: you must add the options - comment_user_picture and - node_user_picture then clear cache and you should be good to go.

  • samuel.mortenson committed 7ae361c on 8.x-5.x
    Issue #2682357: Added missing features from the STARTER theme info.yml...

  • samuel.mortenson committed c3cac34 on 8.x-6.x
    Issue #2682357: Added missing features from the STARTER theme info.yml...
samuel.mortenson’s picture

Status: Active » Fixed

Thanks for the update @wolfhowling! I've added both features to the STARTER theme's info.yml file, which should fix the issue for new users going forward.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.