Archived topic
Post Title & Extra Text in one line
5 replies · Started by Gerik on September 30, 2022
I don't know if this is the right place.
I am creating a GP ELEMENT where I would like "Inquire About xPOST_TITLEx" I don't know how to make it on the same line.
More information: I'm inserting a ninja forms to a woocommerce product page
Hi Gerik,
Can you show me the page where I can see the “Inquire About xPOST_TITLEx”?
[url=https://ibb.co/BjmWRXh][img]https://i.ibb.co/nfTdSHX/Screenshot-2022-10-01-1-05-19-PM.png[/img][/url]
[url=https://ibb.co/1bzzHqB][img]https://i.ibb.co/KmKKCqB/Screenshot-2022-10-01-1-06-04-PM.png[/img][/url]
It's built with WP's core block and a plugin, unfortunately, GP doesn't have control over it.
If you can provide the link and let me inspect the code, I might be able to provide some custom CSS to make it work.
Okay thank you
Try this CSS:
.single-product.postid-4688 h2 {
display: inline;
}
If you can add an additional CSS class to the h2 headings, eg. inline-heading, the CSS can be changed to:
.inline-heading {
display: inline;
}
So if you add this class to other headings, it will also work, it will not be limited to only this page.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/