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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lii240’s picture

Issue summary: View changes
lii240’s picture

Anybody?

echoz’s picture

Assigned: lii240 » Unassigned
Issue tags: -article, -title, -CSS, -edit, -change

link, or screenshot of source?

shruti.sheth’s picture

Hi 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

lii240’s picture

I'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.

lii240’s picture

FileSize
73.69 KB
lii240’s picture

anybody?

Christopher James Francis Rodgers’s picture

FileSize
270.24 KB

The 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

Christopher James Francis Rodgers’s picture

@ 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.

JohnAlbin’s picture

Status: Active » Closed (cannot reproduce)