Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've create a sub-theme and I'm trying to edit the look of the "article's title". I've managed to edit the rest of the page/content but can't seem to get this part done. When I inspect the elements it seems that the article titles have no css class but a datatype class instead (don't know what that is).
What do I need to do to edit the CSS of article titles?
Comment | File | Size | Author |
---|---|---|---|
#8 | tsp.bl_.ee--drupal.jpg | 270.24 KB | Christopher James Francis Rodgers |
#6 | articleTitle.png | 73.69 KB | lii240 |
Comments
Comment #1
lii240 CreditAttribution: lii240 commentedComment #2
lii240 CreditAttribution: lii240 commentedAnybody?
Comment #3
echoz CreditAttribution: echoz commentedlink, or screenshot of source?
Comment #4
shruti.sheth CreditAttribution: shruti.sheth commentedHi lii240,
I could see "page__title" class for
tag for article title. You can apply your styling to this class with ".node-type-article" this as parent class, So that the styling applies only to 'article' content type.
Hope this helps !
Thanks,
Shruti
Comment #5
lii240 CreditAttribution: lii240 commentedI've linked 2 images to show what the issue is.
https://imagizer.imageshack.us/v2/449x373q90/854/32bz.png
https://imagizer.imageshack.us/v2/639x373q90/20/zail.png
As you can see, when I use Dev Tools to find out the class name of article titles all it gives me is a 'property' and 'datatype class'. Neither of which work.
shruti.sheth - I've tried using 'page__title' and '.node-type-article' but that didn't work.
Comment #6
lii240 CreditAttribution: lii240 commentedComment #7
lii240 CreditAttribution: lii240 commentedanybody?
Comment #8
Christopher James Francis Rodgers CreditAttribution: Christopher James Francis Rodgers commentedThe link is:
http://tsp.bl.ee/drupal/
I have never used Chrome "Developer tools",
because I have only ever needed to make adjustments to CSS,
and FireBug (for FireFox) has always come through for me.
I am curious what aspect of the title's styling you are trying to change,
since the specific style aspect could be other than one that is addressed
in my FireBug screen-shot pointing strictly to the tag.
See attached image:
tsp.bl.ee--drupal.jpg
Comment #9
Christopher James Francis Rodgers CreditAttribution: Christopher James Francis Rodgers commented@ lii240:
Sorry if I accidentally deleted your image(s);
I was just trying to keep it(them) from displaying in my comment
so as to not confuse anyone as to which image was mine...
...experience talks, ...and I hate hacking around.
Comment #10
JohnAlbin