The_content styling

Hi
I have an issue with a the_content text element, that should appear with the global font size from theme settings. But the font weight is normal (400) instead of thin (300).
Please see secure note for details.
Thanks & regards,
Hannes

Hi Hannes,

Thanks for reaching out.
It seems that you are trying to style the the_content element, which requires some customization. I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

Thank you.
Styling the content is a basic function.
It should work out of the box, using the global theme options.
Don’t you think so?
Best regards,
Hannes

Hi Hannes,

Styling any content and implementing style using the the_content element is two different things. I would suggest you use any parent element like DIV and implement the style to the_content using the class hierarchy.

Hope it helps.
Thanks

Thank you for your fast response.
Meanwhile I did it by just setting a global CSS line:
p { font-weight: 300 !important; }
That is not complicated.
Doing by giving a surrounding div like you said would surely work proper, too.

But for me, this case raises a general question.
I am working with Pro for a long time and I was always satisfied with its (growing) features.
It’s a bit surprising that such a simple thing doesn’t work right away.
Best regards,
Hannes

1 Like

Hi Hannes,

I will surely check this with our development team and, if possible, add this as a feature request.

Thanks

1 Like

Thank you very much.
You guys are great.

Hi Hannes,

You are most welcome.

Maybe it’s my own sloppy inline styling days, but would a span element with these attributes be useful when someone wants to part with the body copy styling set from the theme? Would the only option to implement the variable be from the inline once the post is rendered?

Hey @studio_in_blue,

Adding a div or span that holds as parent containers is an excellent way to style. It was explained by my colleague above.

Hope that helps.

How is it possible to set e div as parent element and add the styles? Do I have to do this in the element CSS?

Hi Marc_a. Thank you. I just assumed the changes were made through CSS after assigning it a class or ID? My divs in cornerstone don’t let me set text styles through cornerstone’s GUI…unless I’m looking in the wrong place?

But yes, would probably be one too many elements. It’s easy to forget that the names assigned to elements have less to do with actual html and more to do with their behaviors inside of cornerstone itself, especially since the premise fits so cohesively in the actual html generated. Thanks!

Hi Vanessa,

The way suggested by my colleague works in most cases, but we will check with our development team if it is possible to add any option for style in the the_content element.

Thanks

1 Like

This would be marvelous.
Thank you!

Hey @salilou,

You’re welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.