TangentCodes Posted September 16, 2021 Share Posted September 16, 2021 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. Link to comment
tuanphan Posted September 19, 2021 Share Posted September 19, 2021 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> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment