Wrong diacritic characters – which styles need to be changed?

  • Biermann

    #9533

    Hi all,

    I found grapheme theme and I would like to use it for our city portal. Currently I have one main issue – some headers (see picture) display different font for diacritic characters. I know that I need to change font to some which supports the czech diacritic characters, but I don’t know which styles are used for these headers and so it’s a bit difficult for me to change them. Can someone help and advise me which particular styles has to be changed in my child theme style.css file?

    Based on my searching I thought that

    .post-title,

    .post-title a {

    font: 24px “Pontano Sans”, sans-serif;

    color: #1772af;

    margin-top: -3px;

    }

    needs to be changed for post titles, but it doesn’t seem to work.

    Generally I’m not 100% sure if my child theme works correctly and if changes done in child theme style.css are really considered (may it somehow happen that parent theme overrides my child theme style.css instead of the other way?). Is there any easy way how to check that CSS changes done in my child-theme really works and are considered when creating pages?

    Can be some problem in a way how I created my child theme? I haven’t used @import url(“../graphene/style.css”); which was described by Syahir in his post about creation of child themes, but used solution with functions.php which is described in http://codex.wordpress.org/Child_Themes The reason why i did it was that when I used @import_url, then styles seemed to be broken. When I used functions.php solution then everything looked fine.

    Thank you for any help.

    Wrong_headers.jpg

    Biermann

    #43862

    Ok guys, I’ve done some more research and it looks that problem is really in functionality of my child-theme. When I change font for

    .post-title,

    .post-title a {}

    directly in parent graphene theme then it is applied and font changes. So my initial question may change a bit. I’m still looking for style which is used for header of widets and additionally I’m looking for answer why is my child-theme style.css not used.

    My child-theme is quite simple

    style.css

    /*
    Theme Name: Graphene Child
    Theme URI: http://brno-medlanky.eu/
    Description: Odvozené téma od Graphene
    Author: Martin Teplan
    Author URI: http://martinteplan.cz
    Template: graphene
    Version: 1.0
    */
    /* Your modification goes here */
    .post-title,
    .post-title a {
    font: 36px Times New Roman, serif;
    color: #1772af;
    margin-top: -3px;
    }

    .homepage_pane .post-title a,
    .homepage_pane .post-title a:visited{
    font: normal 30px Times New Roman, serif;

    functions.php

    <?php

    add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
    function enqueue_parent_theme_style() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }

    function graphene_custom_header_width(){
    return 1200;
    }
    function graphene_custom_header_height(){
    return 190;
    }
    add_filter('graphene_header_image_width', 'graphene_custom_header_width');
    add_filter('graphene_header_image_height', 'graphene_custom_header_height');

    ?>

    That’s all.

    Anonymous

    #43863

    This would be an example code to change the font of the header in the widgets.

    .sidebar h3 {
    font: 18px "Verdana",Arial,sans-serif;
    }

    I don’t know about your child theme issue though since I used the “import” way.

    /*
    Theme Name: Graphene Child
    Theme URI: https://www.AnonyRev.com/
    Description: Child theme for the Graphene theme
    Author: AnonyRev
    Author URI: https://www.AnonyRev.com/
    Template: graphene
    Version: 1.0
    */
    @import url("../graphene/style.css");
    /* Your modification goes here */

    If others can help you, you need to provide a link to your site which is using the graphene theme. The ones you have in your css file are using different themes.

    And how was your style broken when you used the “import” method?

    Biermann

    #43864

    Thank you for that .sidebar h3 – when I change it in parent theme CSS, then it works. So there remains “only” my problem with not / wrong applied CSS styles.

    I use graphene on this site http://brno-medlanky.eu I’ve changed it to use @import url(“../graphene/style.css”); instead of wp_enqueue_style(), so you can see what I mean by broken.

    Anonymous

    #43865

    What exactly is the name of your child theme folder?

    That looks messed up. Do you have the child theme folder in /wp-content/themes/?

    1415974662696.png

    Do you have any other themes installed? Because I just googled and found that maybe it’s calling the style.css of another theme.

    https://forum.graphene-theme.com/graphene-support/child-theme-broken

    Also try:

    @import url("/wp-content/themes/graphene/style.css");

    Biermann

    #43866

    I have it exactly as in your example. Child theme is in folder graphene-child and also wordpress administration correctly displays that it’s child of graphene and is linked to it. Also when I use that wp_enqueue_style(), then everything works, except for my child theme style.css, which is somehow ignored. E.g. I changed width of upper banner through functions.php and it works (of course when I use wp_enqueue_style()).

    This is a new site on new webhosting with only one installation of wordpress, so there shouldn’t be any unwanted interaction with another WP installation.

    I tried also

    @import url("/wp-content/themes/graphene/style.css");

    but unfortunately it doesn’t work.

    Biermann

    #43867

    Thank you for all your help. I was finally able to solve my issue. I wasn’t able to find out why @import url() doesn’t work for me, but I found a way how to fix that wp_enqueue_style().

    My child-theme CSS style was ignored because its folder had wrong access rights. After i changed it through chmod to 755, server was able to reach child style.css file and now I’m able to override standard styles.

    Once more thank you for your effort.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.