How do I add article_category to my BODY class?

25 views
Skip to first unread message

holger....@googlemail.com

unread,
Jun 20, 2013, 10:19:05 AM6/20/13
to ann...@googlegroups.com
Hi everyone,

I want to set up my css-styles of annotum based on which category the article has.

Is there a way to add the category-name of the shown article to the class-attribute of the <body>-tag (or any other tag)?

I don't mind, if I have to edit the php-files, as I'm using a Child-Theme anyway...

Thanks & Cheers,
Holger.

Carl Leubsdorf, Jr.

unread,
Jun 20, 2013, 10:23:22 AM6/20/13
to ann...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "annotum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to annotum+u...@googlegroups.com.
To post to this group, send email to ann...@googlegroups.com.
Visit this group at http://groups.google.com/group/annotum.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Holger B.

unread,
Jun 20, 2013, 11:03:46 AM6/20/13
to ann...@googlegroups.com
Thanks a lot! Now I know how to add a class to the body-tag.

But how do I retrieve the article_category of the currently shown article?

Cheers, Holger


2013/6/20 Carl Leubsdorf, Jr. <ca...@solvitor.com>

--
You received this message because you are subscribed to a topic in the Google Groups "annotum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/annotum/mDYYM_zjNHs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to annotum+u...@googlegroups.com.

holger....@googlemail.com

unread,
Jun 20, 2013, 11:05:10 AM6/20/13
to ann...@googlegroups.com
Thanks a lot! Now I know how to add a class to the body-tag.

But how do I retrieve the article_category of the currently shown article?

Cheers, Holger


Carl Leubsdorf Jr.

unread,
Jun 20, 2013, 12:55:49 PM6/20/13
to ann...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages