I noticed there's no classes e.g. "path-frontpage, path-node...." added to the tag which Bartik does. Now, I don't know how to target for my css ....lol. Any one encounter the same problem or just me ?

CommentFileSizeAuthor
#3 issue-2622804-body-classes.patch2.77 KBneardark

Comments

simone960 created an issue. See original summary.

neardark’s picture

Status: Active » Needs work
neardark’s picture

StatusFileSize
new2.77 KB
neardark’s picture

Status: Needs work » Needs review
simone960’s picture

Great ! patch in #3 works ! I wonder if you can add one more class with node ID e.g. "path-node-[nid]" so that we can narrow down our target to a particular node page. This class is added to the Bootstrap theme in Drupal 7. Hope can do the same for D8. Thanks !

markhalliwell’s picture

Version: 8.x-3.0-alpha1 » 8.x-3.x-dev
Component: Code » Templates
Category: Support request » Bug report
Status: Needs review » Needs work
Issue tags: +Needs reroll

Needs a re-roll since #2624420: Restructure code into OO has gone in.

  • markcarver committed edb622b on 8.x-3.x
    Issue #2622804 by neardark, markcarver: Body tag no path classes
    
markhalliwell’s picture

Status: Needs work » Fixed
Issue tags: -Needs reroll

Status: Fixed » Closed (fixed)

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