Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How do I format select words in italics and bold using CSS?


TangentCodes

Question

Site URL: https://www.tangentbooks.co.uk/tangfest

Please help!

I used code injection to put some text at the top of our new products page. Please see first two pictures.

However, I cannot figure out how to make certain words bold, in italics and how to put in paragraph breaks. Spent all of yesterday trying to figure it out and got no luck. Someone please help! See picture 3 for an example of how I want the text to appear.

Also it would be great to get our festival logo in there at the top as well. If someone could also tell me how to add an image to the top of this page using code injection, that would be amazing.

Screenshot 2021-09-16 at 10.37.33.png

Screenshot 2021-09-16 at 10.37.55.png

Screenshot 2021-09-16 at 10.38.09.png

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

1 answer to this question

Recommended Posts

  • 0

Hi,

Remove your code & use this code

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('<p class="t-text"><strong>Tangent Books</strong> is excited to bring you TangFest: The Shortest Literature Festival In The World <em>probably</em> in October from Friday 22nd to Saturday 23rd, 2021.<br/> Our events range from a film screening to a writing workshop to talks from authors to live poetry and music!<br/> Find tickets for all events below. Come along and enjoy TangFest!</p>').insertBefore('#productList');
	});
</script>
<style>
  p.t-text {
    text-align: center;
    color: black;
    font-size: 20px;
    margin-bottom: 50px;
}
  main#page {
    padding-left: 0;
    padding-right: 0;
}
</style>

image.thumb.png.a3200039ea2decc5260ab6a4c114e5b5.png

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...