Custom Code – Custom body Class – td-Black

Posted in: Newspaper
Post count: 25

hello there, i am curious a lot of how the custom body class feature works. by default when i choose the black demo pages in newspaper > custom code > custom body class it is by default contain text “td-black”
it was confusing me to figure out why my i was not able to customize the background from the theme colors, background image. then finally i figured out that the text “td-black” is the issue..

so i just wonder about how it works..where this td-black link to/from. is it only secret code from newspaper developers as the mark of the demos. because i tried to use td-blue nothing’s changed.

haha.. hope u mind to explain a little. thanks.

Post count: 22421

Hello,

The class is just a simple body class that is added to each demo so we can create specific css that affects only that particular demo and not others as well. CSS is very specific so you have to wrap everything in it;s own class if you do not want to create a code that applies to all the other demos as well. Each demo has it;s own class. The black version has td-black, the news magazine demo has a class of td-magazine etc.
Each demo in particular has it’s own class.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.