Why isn't my Style.css updating on Wordpress? -
i'm trying make font on website little bit larger. thought super simple fix. jump style.css file , body font size. found when did this, didn't update on front end despite file being updated sure.
i realized when dug source code, there seems line of code added end of link stylesheet appears preventing new update being reflected - "?ver=4.8". check out below:
<link rel='stylesheet' id='font-awesome-css' href='http://www.example.com/wp-content/plugins/the-social-links/assets/css/font-awesome.min.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='the-social-links-style-css' href='http://www.example.com/wp-content/plugins/the-social-links/assets/css/style.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='dashicons-css' href='http://www.example.com/wp-includes/css/dashicons.min.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='admin-bar-css' href='http://www.example.com/wp-includes/css/admin-bar.min.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='sb_instagram_styles-css' href='http://www.example.com/wp-content/plugins/instagram-feed/css/sb-instagram.min.css?ver=1.4.9' type='text/css' media='all' /> <link rel='stylesheet' id='sb_instagram_icons-css' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css?ver=4.6.3' type='text/css' media='all' /> <link rel='stylesheet' id='blaskan-fonts-css' href='https://fonts.googleapis.com/css?family=droid+serif%3a400%2c700%7csource+sans+pro%3a300%2c400%2c600%2c700%2c900%7cwork+sans%7cpacifico&subset=latin%2clatin-ext&ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='bootstrap-css' href='http://www.example.com/wp-content/themes/blaskan/assets/css/bootstrap.min.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='fontawesome-css' href='http://www.example.com/wp-content/themes/blaskan/assets/css/font-awesome.min.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='blaskan-style-css' href='http://www.example.com/wp-content/themes/blaskan/style.css?ver=4.8' type='text/css' media='all' /> <link rel='stylesheet' id='tablepress-default-css' href='http://www.example.com/wp-content/plugins/tablepress/css/default.min.css?ver=1.8' type='text/css' media='all' /> it's second last stylesheet want update. so, thought jump header.php file remove weird code @ end appears overriding update, when opened file, see there is:
<head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> no stylesheet links in sight.
can tell me can edit stylesheet code remove "ver=4.8" code end?
the them i'm using https://wordpress.org/themes/blaskan/, if helps.
thanks in advance!
you not modify themes css directly. correct way this, create child theme , modify css-files of child theme. here instruction on how can create child theme.
wordpress suggests using child theme:
there few reasons why want use child theme:
if modify theme directly , updated, modifications may lost. using child theme ensure modifications preserved. using child theme can speed development time. using child theme great way learn wordpress theme development.
Comments
Post a Comment