Tagged: x
-
AuthorPosts
-
September 22, 2016 at 6:43 am #1186315
ATCompressorsParticipantHello there,
When inputting my custom CSS in style.css of the child theme, not all of the changes I would like to make are updated on my website.
However, when inputting the same CSS in the Customizer, all changes automatically occur.I have tried adding !important; to the CSS that doesn’t seem to be working and it doesn’t make the slightest difference.
I’ve tried emptying the cache of my website and emptying the cache of my browser and nothing seems to make the slightest difference.
I’m at a complete loss as to what I am doing wrong.
September 22, 2016 at 9:18 am #1186429
RahulModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
September 22, 2016 at 10:10 am #1186503
ATCompressorsParticipantThis is the URL: http://aandtcompressors.com/home
I was first having trouble in getting the top border of the footer to change colour. I was using the following CSS:
.x-colophon.bottom { border-top: 2px solid #d74242; !important; background-color: #000000; }I’ve managed to work around it by instead changing the colour to the top border of the content band above the footer.
I used this code:.border-top.x-content-band { border-top: 5px solid rgb(215, 66, 66); }I would be very grateful to know how I could make that code content band specific.
I don’t want the top borders of all the content bands to be red.The second issue I’m having trouble with is in regards to a custom headline.
I used the following code:.my-custom-headline { color: #000000; !important; }It works in the customiser but not in style.css
September 22, 2016 at 11:38 am #1186630
JadeModeratorHi there,
Please add this code in the functions.php of the child theme then test the CSS in the style.css again:
function remove_theme_version_strings( $src ) { $theme_version = wp_get_theme(get_template())->get( 'Version' ); // theme version parse_str( parse_url($src, PHP_URL_QUERY), $query ); if ( !empty( $query['ver'] ) && $query['ver'] === $theme_version ) { // Active theme version $src = remove_query_arg( 'ver', $src ); } return $src; } add_filter( 'style_loader_src', 'remove_theme_version_strings' );Hope this helps.
September 23, 2016 at 4:45 am #1187725
ATCompressorsParticipantUnfortunately, that doesn’t seem to have changed anything.
Do you think it has anything to do with how I’ve written the CSS?
September 23, 2016 at 4:58 am #1187733
DarshanaModeratorHi there,
You can try adding the !important flag and see if that makes any difference. Also copy all of your CSS rules into an online tool like CSS Lint (http://csslint.net/) and check for CSS errors. If you have errors, CSS won’t parse correctly until you fix it.
Let us know how it goes.
Thanks!September 26, 2016 at 3:58 am #1190496
ATCompressorsParticipantCSS Lint worked a charm!
I’ve never heard of it before, but I can already tell that I’m going to be visiting it very frequently in future. 🙂
It’s so grand that it tells you exactly what you’re doing wrong.Thank you kindly for your help. 😀
September 26, 2016 at 4:01 am #1190499
ChristopherModeratorYou’re most welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1186315 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
