Skip Navigation

[Resolved] How to get the text BY AURTHUR MILLER along side the H2 Title

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display HTML elements in same line.

Solution:

You can use CSS codes to customize it, for example:

https://toolset.com/forums/topic/how-to-get-the-text-by-aurthur-miller-along-side-the-h2-title/#post-1272339

Relevant Documentation:

https://www.w3schools.com/html/html_css.asp

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by John Cook 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1272315

Thanks Luo that's working;

Can you tell me how to get the text BY AURTHUR MILLER along side the H2 Title THE CRUCIBLE but as it looks now NOT as an h2

URL: hidden link

CODE USING

<div class="row">
  <div class="col-sm-3"><a href="[wpv-post-url]" alt="[wpv-post-title] [types field='author-credit'][/types] [types field='author'][/types]" Title="[wpv-post-title] [types field='author-credit'][/types] [types field='author'][/types]">[wpv-post-featured-image size="medium"]</a></div>
  <div class="col-sm-9">
    <h2><a href="[wpv-post-url]" Title="[wpv-post-title] [types field='author-credit'][/types] [types field='author'][/types]">[wpv-post-title]</a></h2><span class="author-credit">[types field='author-credit'][/types] <strong>[types field='author'][/types]</strong></span>
    [wpv-conditional if="( '[types field='start-date' format='F'][/types]' eq '[types field='end-date' format='F'][/types]' )"][types field='start-date' format='jS'][/types] - [types field='end-date' format='jS F Y'][/types] at [types field='start-time-evenings'][/types][/wpv-conditional][wpv-conditional if="( '[types field='start-date' format='F'][/types]' ne '[types field='end-date' format='F'][/types]' )"][types field='start-date' format='jS F'][/types] - [types field='end-date' format='jS F Y'][/types] at [types field='start-time-evenings'][/types][/wpv-conditional][wpv-conditional if="( '[types field='start-time-matinee'][/types]' ne '' )"] (matinee at [types field='start-time-matinee'][/types])[/wpv-conditional]<br/><br/>
        <span class="strapline">[types field='strapline'][/types]</span>
    [wpv-post-body view_template="None"]</div>
</div>
#1272339
inline.JPG

Hello,

I assume you are going to display H2 text "THE CRUCIBLE" and text "BY ARTHUR MILLER" in the same line.

If it is, you can use CSS codes to customize it, for example:

...
<h2 style="display: inline;"><a href="[wpv-post-url]" Title="[wpv-post-title] [types field='author-credit'][/types] [types field='author'][/types]">[wpv-post-title]</a></h2><p style="display: inline;"><span class="author-credit">[types field='author-credit'][/types] <strong>[types field='author'][/types]</strong></span></p>
...

See screenshot inline.JPG

More help:
hidden link

#1272375

My issue is resolved now. Thank you!