H5 size to H2

Rev
Posts: 23
Joined: Wed Jan 04, 2017 3:05 am
Contact:

H5 size to H2

Postby Rev » Wed Feb 15, 2017 3:27 am Supported Until: Tue Jul 04 20:54:13 +1000 2017 | Expired

Hi,

I would like to change the H2 headers when i use this to a much smaller font. I would like to use the H5 size here. So question is how i can change the css for h2 that it will be the same size as h5.

Thanks!

Rev
Posts: 23
Joined: Wed Jan 04, 2017 3:05 am
Contact:

Re: H5 size to H2

Postby Rev » Sun Feb 19, 2017 12:59 am Supported Until: Tue Jul 04 20:54:13 +1000 2017 | Expired

Hi,

Can you please let me know?

THanks!

User avatar
pirateS
Site Admin
Posts: 6029
Joined: Wed Nov 05, 2014 11:49 am
Contact:

Re: H5 size to H2

Postby pirateS » Thu Feb 23, 2017 9:24 am

Hi,
Could you please take a caption where you want to change this tag?
Thanks

Rev
Posts: 23
Joined: Wed Jan 04, 2017 3:05 am
Contact:

Re: H5 size to H2

Postby Rev » Tue Feb 28, 2017 4:32 am Supported Until: Tue Jul 04 20:54:13 +1000 2017 | Expired

Hi,

just everywhere in every article.

So when I write an article. I select for each header H5 now but it is better to use H2 of course.

But H2 is too big. H5 is 18px. So question is: How do I change the css so H2 is also 18px?

Thanks!

User avatar
pirateS
Site Admin
Posts: 6029
Joined: Wed Nov 05, 2014 11:49 am
Contact:

Re: H5 size to H2

Postby pirateS » Tue Feb 28, 2017 9:14 am

Hi,
Please go to APpearance->Theme Options->Advanced Settings->Put the below code in Custom CSS

CodeColon Select All Code

h2{
    font-size: 18px !important;
}

Voetzoekers
Posts: 54
Joined: Sun Oct 29, 2017 10:40 pm
Contact:

Re: H5 size to H2

Postby Voetzoekers » Sun Feb 11, 2018 10:59 pm Supported Until: Sun Apr 29 18:39:52 +1000 2018

I'm trying to decrease the h2 titles used in the blogposts.

Using Chrome --> Inspect, I think it should be good at about 28px.
So I go to 'Advanced settings' and add the following code:

CodeColon Select All Code

/*adjusted h2*/
.h2{
    font-size: 28px !important;
}


But nothing seems to change. Anything I'm doing wrong?

User avatar
adiazudin
Posts: 53
Joined: Sun May 28, 2017 9:32 am
Location: Kuala Lumpur
Contact:

Re: H5 size to H2

Postby adiazudin » Thu Feb 15, 2018 3:34 am Supported Until: Sat Nov 11 11:53:10 +1100 2017 | Expired

Hello everyone :)
You can set the heading style like this.

Example below you can change any font size do you like for your post.

CodeColon Select All Code

/* Heading style for single only */
.wiloke-content h1{font-size:36px}
.wiloke-content h2{font-size:30px}
.wiloke-content h3{font-size:26px}
.wiloke-content h4{font-size:24px}
.wiloke-content h5{font-size:22px}
.wiloke-content h6{font-size:20px}
Adi, Designer

Voetzoekers
Posts: 54
Joined: Sun Oct 29, 2017 10:40 pm
Contact:

Re: H5 size to H2

Postby Voetzoekers » Fri Feb 23, 2018 9:27 pm Supported Until: Sun Apr 29 18:39:52 +1000 2018

Hi adiazudin,

The snippet if code doesn't seem to work in a post (because of .wiloke-content maybe?)

CodeColon Select All Code

/* Heading style for single only */
.wiloke-content h2{font-size:28px}
.wiloke-content h3{font-size:24px}
.wiloke-content h4{font-size:20px}


The sizes stay the same as before I added the custom code to ' Appearance / Advanced settings / Custom CSS code' Should this be working or should I add another line of code? Thanks in advance.

Edit:
Just added !important to every line and now it does work. Thanks again for your help.

User avatar
adiazudin
Posts: 53
Joined: Sun May 28, 2017 9:32 am
Location: Kuala Lumpur
Contact:

Re: H5 size to H2

Postby adiazudin » Sat Feb 24, 2018 12:12 am Supported Until: Sat Nov 11 11:53:10 +1100 2017 | Expired

Great @Voetzoekers

The .wiloke-content will effect for single post. If you just modify h2 only for example, it will effect overall including homepage, sidebar etc. In this case we just want to modify single post only.
Adi, Designer

Voetzoekers
Posts: 54
Joined: Sun Oct 29, 2017 10:40 pm
Contact:

Re: H5 size to H2

Postby Voetzoekers » Sat Feb 24, 2018 1:05 am Supported Until: Sun Apr 29 18:39:52 +1000 2018

@ adiazudin I hope you're getting paid by Wiloke. Much appreciated!


Return to “Hermes”

Who is online

Users browsing this forum: No registered users and 1 guest