• Hello,

    I’ve got a problem with changing font in “postitle” (h2). I’ve tried to edit CSS, I’ve added Google Font in header and in CSS and nothing changed

    In header:
    <link href='https://fonts.googleapis.com/css?family=Fauna+One&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
    In CSS:
    .h2{font-family: 'Fauna One', sans-serif!important; }

    I know that I can choose in admin panel only 3 fonts, but if there is a possibility to have another font in title’s?

    What is strange – when I change font-size of h2 it works, but font-family doesn’t work at all :/

    Thank you in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • it’ll be better if you provide a link to your site …. can you? otherwise you may be not targeting your h2 correctly …

    Thread Starter lucas.stolarski

    (@lucasstolarski)

    that’s what i was saying ….. you are providing font-family to your h2 class … which is “.h2” while your “.h2” class is never used in your entire css. I hope that . is misplaced …… so just do this instead of .h2

    h2 {
    font-family: ‘Fauna One’, sans-serif !important;
    }

    and then you’ll be able to see your changes …. hope you understand what i mean ….. still if you are not clear feel free to ask …. thanks

    Thread Starter lucas.stolarski

    (@lucasstolarski)

    yes, I understand.. I pasted your code and it’s still doesn’t work.

    ok i got it … first of all your h2 is taking your new google font now…. the problem with your theme is that it is coded with applying different title at different places, i mean your titles are targeted differently …
    so to target your postitle h2 just put this code it’ll surely help
    .single_post .postitle {
    font-family: ‘Fauna One’, sans-serif;
    }
    as your postitle is targeted in this way … if you still want a change at other place feel free to ask …

    Thread Starter lucas.stolarski

    (@lucasstolarski)

    I want to change titles in every page – I know that second page “AKTUALNOSCI” has different place and style in css – I added code that you wrote and again font stayed the same. It’s really strange because when I write for example font-size:14px; in this place, it changes.. But font-family stays the same..

    I think changing font-family parameter is somehow blocked – in theme options I can choose only 3 predefined fonts from list – and that’s all..

    Thank you for your help.

    EDIT: I added this:

    body h2{
    font-family: Habibi,Verdana !important;
    font-size:25px!important;
    }

    at the bottom of style.css and font changed for all pages besides this second one with “Aktualnosci”

    Thread Starter lucas.stolarski

    (@lucasstolarski)

    I found the reason, why in second page “Aktualnosci” it doesn’t work – because whole content is inside two classes:

    <div class="lay1">
    <div class="lay1_wrap">

    and all other pages are in

    <div id="content">
    <div class="single_post">

    when I replace lay1 and lay1_wrap with content and single_post, font is changed but of course whole layout of page is different. I still don’t have any idea how to change it in this single page.

    ok …. the problem i already told is that “your theme is targeting h2 differently in different places … so where ever you want a change just figure out that h2 and target that specific h2, apply your font-family or font-size what you want will do the work …. simply just target your selector … that’s all ….

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing fonts in headers and post titles’ is closed to new replies.