What theme are you using? Are you using a caching plugin? If so, you should temporarily disable it while you work on the site?
Thread Starter
jadmac
(@jadmac)
Hi, I’m using a custom theme, however the css stylesheet edits apply and I can see them when I press “preview”, however as soon as I log out it returns to normal.
When I log back in they are still there.And no I have no caching plugins?
How are you editing the stylesheet? Are you using the built-in Editor (Dashboard > Appearance > Editor)?
Thread Starter
jadmac
(@jadmac)
I’m using jetpack custom CSS….
I fushed the cache….I’m wondering if it takes a while to apply to the site, or should it happen immediately?
Is your host caching your site? If you force-refresh your browser (see your browser’s documentation for details), do the edits appear?
Thread Starter
jadmac
(@jadmac)
I have managed wordpress by godaddy so I assume so?…I have forced refresh chrome using ctrl f5 but nope still can’t see the edits?…yet I log in and they’re there.
Can you post a link to your site?
I see you’re using a child theme. Are you editing the child theme’s stylesheet? When I look at your site, everything in your child theme’s stylesheet appears to be working.
Thread Starter
jadmac
(@jadmac)
No I’m not, I’m just editing the jetpack css custom stylesheet…
I’m trying to apply this to my posts:
body {
font-family: Open Sans, Open Sans, Open Sans;
font-size: 15px;
font-weight: normal;
}
Thread Starter
jadmac
(@jadmac)
How do I access the child theme css?
Got it. WordPress only automatically loads Open Sans when a user is logged in, because WP uses that font for the Dashboard, which is why it works when you’re logged in, but not otherwise. You can load the Open Sans font in your child theme’s functions.php
like this:
<?php
function child_theme_scripts() {
wp_enqueue_style( 'open-sans', '//fonts.googleapis.com/css?family=Open+Sans' );
}
add_action( 'wp_enqueue_scripts', 'child_theme_scripts' );
If your child theme doesn’t have that file, you should create it using a plain-text editor and then upload it to your child theme’s folder using FTP or cPanel or whatever file management application your host provides.
Also, you need to use quotes in your font rule: font-family: "Open Sans";
.
Thread Starter
jadmac
(@jadmac)
Thank you very much indeed, I really appreciate it!
– Trust me to use the one font that you cant! lol
One final thing…how can I stop the post titles being edited in the css? Specifically the size of the font..I don’t want the post title to change, only the body text.
Try this:
h2.title {
font-size: 24px;
}
.home #main .title {
font-size: 24px;
}
The first rule changes the font size for the post titles in the slider, and the second rule changes the font size for the post titles in the boxed sections further down the page (the sections labeled “Banking & Saving”, “Credit Cards & Loans”, etc.).