Autor Zpráva
Petr_pan07
Profil
Ahoj,

nevím si rady s nastavením českých znaků na webu - koupil jsem šablonu z Theme Forest

Použitý font tam je Barlow fonts.google.com/?query=barlow
Který umí české znaky.

V hlavičce mám
<head>
    <!-- Basic Page Needs -->
    <meta charset="utf-8">
    <title>Be</title>
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- Favicons -->
    <link rel="shortcut icon" href="content/estate3/images/favicon.ico">
    <!-- FONTS -->
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Barlow:100,200,300,400,400italic,500,700,700italic,900'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Barlow+Condensed:100,200,300,400,400italic,500,700,700italic,900'>
    <!-- CSS -->
    <link rel='stylesheet' href='css/global.css'>
    <link rel='stylesheet' href='css/el_demo.css'>
    <link rel='stylesheet' href='content/estate3/css/structure.css'>
    <link rel='stylesheet' href='content/estate3/css/estate3.css'>
    <link rel='stylesheet' href='content/estate3/css/custom.css'>

když to rozšířím o &subset=latin,latin-ext

<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Barlow:100,200,300,400,400italic,500,700,700italic,900&subset=latin,latin-ext'>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Barlow+Condensed:100,200,300,400,400italic,500,700,700italic,900&subset=latin,latin-ext'>

Nenastane ale žádná změna české znaky se nezobrazí

V CSS mám nastaveno toto:

body, button, span.date_label, .timeline_items li h3 span, input[type="submit"], input[type="reset"], input[type="button"], input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea, select, .offer_li .title h3 {
    font-family: "Barlow", Arial, Tahoma, sans-serif;
}
#menu>ul>li>a, a.action_button, #overlay-menu ul li a {
    font-family: "Barlow", Arial, Tahoma, sans-serif;
}
#Subheader .title {
    font-family: "Barlow Condensed", Arial, Tahoma, sans-serif;
}
h1, h2, h3, h4, .text-logo #logo {
    font-family: "Barlow Condensed", Arial, Tahoma, sans-serif;
}
h5, h6 {
    font-family: "Barlow Condensed", Arial, Tahoma, sans-serif;
}
blockquote {
    font-family: "Barlow", Arial, Tahoma, sans-serif;
}
.chart_box .chart .num, .counter .desc_wrapper .number-wrapper, .how_it_works .image .number, .pricing-box .plan-header .price, .quick_fact .number-wrapper, .woocommerce .product div.entry-summary .price {
    font-family: "Barlow Condensed", Arial, Tahoma, sans-serif;
}

Dokážete mi poradit kde dělám chybu?

Díky
T-fon
Profil
Když bys to hodil do Živé ukázky, tak bys viděl, že čeština funguje.
Kajman
Profil
Petr_pan07:
Snad jen pozor na to, že & se zapisuje v html jako &amp;
Petr_pan07
Profil
Bohužel to pořád nezobrazuje česká znaky

živý odkaz je zde: 234768.w68.wedos.ws/index-estate3.html
blaaablaaa
Profil
Petr_pan07:
Problém je v kódování stránky - bude nejspíš uložena ve windows-1250 a pokoušíš se ji zobrazit v utf-8.
Petr_pan07
Profil
Super, díky za pomoc,

Bylo to tím kódováním.

Teď už to funguje.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0