Home › Forums › Support › Seperate h2, h3 topics This topic has 14 replies, 2 voices, and was last updated 6 years, 3 months ago by Leo. Viewing 15 posts - 1 through 15 (of 15 total) Author Posts January 15, 2018 at 1:55 pm #471735 breaked Hi, I would like to style the h2 and h3 headlines separately. Is there a way to distinguish between the blog and static pages via css? January 15, 2018 at 3:20 pm #471803 LeoStaff Customer Support Hi there, I would recommend setting the static pages using Customizer > Typography, then for blog page using CSS: .blog h1, .archive h1 { font-size: 20px; } January 16, 2018 at 12:08 am #471943 breaked Hi Leo, I changed the typography via customizer. Unfortunately, nothing happens with the additional css code. I don’t know why. January 16, 2018 at 1:19 am #471967 breaked I tried .single .site-content h2 { font-weight: bold; border-bottom: 3px solid black; } .single .site-content h3 { text-decoration: underline; font-weight: bold; } But for this reason the widget title h2 also changes…. January 16, 2018 at 9:00 am #472366 LeoStaff Customer Support Can you link me to your site? January 16, 2018 at 11:51 am #472549 breaked I edited the first post so you can see the link. I solved the problem with the following code: .single .site-content h2 { font-weight: bold; border-bottom: 3px solid black; } .single .site-content h3 { text-decoration: underline; font-weight: bold; } .widget h2 { border:none !important; font-weight:normal !important; } However, I don’t know why I have to set widget h2 with important. January 16, 2018 at 1:51 pm #472667 LeoStaff Customer Support That’s because the widget is included in .site-content Glad you found the solution! January 17, 2018 at 6:42 am #473174 breaked I figured out that with .blog h1 nothing happened at my site. Could you explain?! January 17, 2018 at 6:49 am #473265 LeoStaff Customer Support What do you mean? What’s the current issue? Can you let me know which elements you are referring to on your site? January 17, 2018 at 7:11 am #473277 breaked The problem is solved. But I want to know what the elements are for .blog h1, .archive h1 can be used. Blog and archive are probably solid elements?! January 17, 2018 at 1:24 pm #473559 LeoStaff Customer Support Not quite sure what you mean still. You would add .blog and .archive in front of selector if you only want them to change on index pages. Hope this answers your question. If not let me know π January 17, 2018 at 1:27 pm #473568 breaked Sorry, maybe because of the poor English language skills. When I appeal to .blog and .archive, nothing happens to me. Is there something in the documentation? If not, not too bad. The problem has already been solved. January 17, 2018 at 5:25 pm #473698 LeoStaff Customer Support When .blog and .archive are added, the code will only apply to the main blog page and archive pages. .single will make the code apply to single posts which I believe is what you were after π January 18, 2018 at 12:25 am #473847 breaked Thanks. That was exactly what I’m looking for. January 18, 2018 at 5:40 am #474018 LeoStaff Customer Support No problem π Author Posts Viewing 15 posts - 1 through 15 (of 15 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In