- This topic has 10 replies, 4 voices, and was last updated 3 years, 9 months ago by jm1991.
-
AuthorPosts
-
July 19, 2020 at 6:33 am #1368582jm1991
Hey there,
So I noticed that text I want to bold and select for the Inline Code rich text feature, doesn’t render properly in the browser.
For example, this is what I see in the editing interface: https://imgur.com/Qhim2zD
You can see that [[:punct:]] is bolded and has the Inline Code rich text feature enabled; however, that’s not reflected in the browser, as seen here https://imgur.com/A9WYqul
I’m sure this was working before, so I’m not sure if there could be some rogue CSS causing issues?
Your help would be much appreciated, as always.
July 19, 2020 at 8:16 am #1368769LeoStaffCustomer SupportHi there,
That’s normal as it’s inside the
<code>
block.Are you wanting all the content in side the
<code>
to be bold?If so try this CSS:
code { font-weight: 700; }
July 19, 2020 at 9:11 am #1368814jm1991Hey leo,
Thanks for the response. I want some text built with the paragraph module wrapped with the Inline Code rich text feature to be bolded; however, I also want that text to have the subtle grey background similar to when I build a section using the code module from the off as seen here https://imgur.com/hhBJty5 That screenshot shows what text looks like when I build with the code module to begin with. I’m not so fussed about those sections being bolded.
When I wrap the Inline Code rich text feature around words built in a paragraph module, that subtle grey background doesn’t render in the browser, even though I can see it in the editing interface, like this https://imgur.com/Qhim2zD I’d like those words to be bolded and have that subtle grey background.
July 19, 2020 at 10:04 am #1368846LeoStaffCustomer SupportCan you do me a favor and test if this the current behavior is the same in a twenty series WP theme?
July 19, 2020 at 11:04 am #1368924jm1991Do I need to create a new WP account? Would I not provide the GP theme?
July 19, 2020 at 11:05 am #1368925LeoStaffCustomer SupportNo – simply activate the twenty series theme to test if you can.
July 19, 2020 at 12:02 pm #1368969jm1991So, I switched theme and the sections that I bolded in the editor were bolded without having to add CSS on the live site, unlike the current site; however, the default background colour for the Inline Code rich text feature is white, so that was represented on the live site.
Bolded words: https://imgur.com/sZKKdL2
Default white background: https://imgur.com/CQPukjkJuly 19, 2020 at 4:44 pm #1369084TomLead DeveloperLead DeveloperHi there,
I’m not sure
<code>
accepts HTML like that, I’m surprised that it worked with another theme.What if you use
<pre>
instead?July 20, 2020 at 1:52 am #1369339jm1991hmmm I couldn’t find a feature that would add
<pre>
Is there CSS that could add that subtle grey background (#f2f2f2) to content wrapped in
<code>
, similar to this https://imgur.com/Qhim2zDThanks
July 20, 2020 at 3:43 am #1369425DavidStaffCustomer SupportHi there,
to style a
<code>
element inside a paragraph you could try this CSS:p code { padding: 2px 4px; background-color: #f2f2f2; }
July 20, 2020 at 6:01 am #1369541jm1991It works! Top work guys!
Love your customer service and is one of the main reasons why I keep recommending the theme to others.
-
AuthorPosts
- You must be logged in to reply to this topic.