3 replies [Last post]
irxy
irxy's picture
Offline
newbie
Last seen: 3 years 37 weeks ago
Timezone: GMT+1
Joined: 2016-03-04
Posts: 4
Points: 6

Hi,

I have some troubles to change some codes in css. I don't know if the problem is with the child theme or wrinting code css.

Let's see if I did well the process.

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:

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;
}

Also I tried to not write down any size in the body secction (font-size: 12px) and it doesn't work neither!!!!!
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!

irxy
irxy's picture
Offline
newbie
Last seen: 3 years 37 weeks ago
Timezone: GMT+1
Joined: 2016-03-04
Posts: 4
Points: 6

PD: I added the code .css to

PD: I added the code .css to styles.css, not to the functions.php (it's not so much clear at the message)

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 1 hour ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Hi irxy, That will be because

Hi irxy,
That will be because of specificity.
Use your browser tools to see what is setting the font size and make a more specific selector.

irxy
irxy's picture
Offline
newbie
Last seen: 3 years 37 weeks ago
Timezone: GMT+1
Joined: 2016-03-04
Posts: 4
Points: 6

Ok, I was doing it in a wrong

Ok, I was doing it in a wrong way. Finally I did it! Thanks!