• Resolved Nuriaruiz

    (@nuriaruiz)


    Hi,

    I check all the post about this question, but still I can not fix the issue.

    I created a child theme ->exposito-child

    Then I created a style.css with this content:

    /*
    Theme Name: expositio-child
    Theme URI: expositio-child
    Description: expositio-child
    Author: Wpshower
    Author URI: http://expositio.wpshower.com/
    Template: expositio
    Version: 0.1
    .
    Licencia, texto, lo que sea que quieras puedes escribirlo aquí …
    */
    @import url(“../expositio/style.css”);

    Then I created functions.php with this content:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘parent-style’ ) );
    }
    ?>

    And then, I tried to add some code:

    body {
    font-family: ‘Open Sans’, sans-serif;
    font-size: 12px
    }

    And it changes the font but the size was changed in some parts of the website, like captions. But not the site-title, h1, etc.
    Then I tried to change it separately:

    site-title {
    font-size: 50px;
    }

    And it doesn’t work!!!!! How should I do it?

    The theme used is EXPOSITIO, and there is no any place to contact to the developers (the forum website doesn’t work: http://wpshower.com/ )

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • First, it’s not necessary to use @import because the code you’re using in functions.php is already loading your parent theme’s stylesheet, but I don’t think that’s what’s causing your problem. Can you post a link to your site with the child theme active?

    Thread Starter Nuriaruiz

    (@nuriaruiz)

    Hi Stephen,

    Thanks for your reply.
    I can not post the link because I’m working in localhost.

    Is there other way to help me?

    Thanks

    It’s pretty tough to help without being able to see a live site. The developer’s forum seems to be fairly active; have you tried contacting them via FB or Twitter?

    Thread Starter Nuriaruiz

    (@nuriaruiz)

    Yes, I have tried, but there is not response. Actually, there is no activity since 2014 in both.

    What do you need to know? I can show you whatever you want by links, screenshots…

    Just as an experiment, can you try removing the @import line from your child theme’s stylesheet? Make sure you force-refresh your browser (see your browser’s documentation) after doing so.

    Can you post the contents of your child theme’s stylesheet to Pastebin and post the link here?

    Thread Starter Nuriaruiz

    (@nuriaruiz)

    Thank’s so much for helping me, I’m desesperated.
    I have tried without @import line, and it doesn’t work.

    Child’s Stylesheet:
    http://pastebin.com/i8krHY6Z

    Child Funtions:
    http://pastebin.com/C7gCrBhX

    Thread Starter Nuriaruiz

    (@nuriaruiz)

    I don’t know if it helps, but when I go to Apparence -> Editor -> Styles.css, Child theme is charged but there is no information there, is like empty, but the file is in the local place.

    I don’t see any code related to the site title in your child theme’s stylesheet, but I can’t see any reason why the code you posted in your original post wouldn’t work. You could try brute-forcing it with !important:

    .site-title {
      font-size: 50px !important;
    }
    Thread Starter Nuriaruiz

    (@nuriaruiz)

    It works!! I think I didn’t add the previous dot, and this was the error.
    Thank you very much!

    Thread Starter Nuriaruiz

    (@nuriaruiz)

    Everything ok, BUT, for example in .primary-navigation a, I can not change the line-height less than 35px, I think it’s the standard in this template. Even forced by important:

    http://pastebin.com/dXXMF6Zs

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Child theme / Style.css is not working properly’ is closed to new replies.