Back on topic: As MasterJuan indicated, a child theme really is the way to go. ??
https://codex.www.ads-software.com/Child_Themes
Or if you like, there are custom CSS plugins that you can use to get that CSS included.
https://www.ads-software.com/plugins/search.php?q=custom+CSS
If you do go with a child theme then you’ll need to create a new directory in your wp-content/themes
direcory named latte-child
.
In that new directory create a functions.php
file and put this in it.
<?php
add_action( 'wp_enqueue_scripts', 'latte_child_enqueue_styles' );
function latte_child_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
Then create another file in latte-child
named style.css
and put this in that file.
/*
Theme Name: Latte Child theme
Description: A Child theme for the Latte theme to safely make changes
Version: 0.1
Template: latte
*/
@media (min-width: 1200px){
.col-lg-offset-2 { margin-left: 0px;}
.col-lg-8 { width: 100%;}
}
See the @media
part? I copied that from MasterJuan’s CSS that he provided.
Once you’ve created those files, in your WordPress dashboard look for and activate the Latte Child theme
and your new CSS should be active.