WordPress website not showing changes without clearing cache

If the files are being cached, then whatever caching solution you are using is working! That’s why there’s a clear caching button available. Typically JS and CSS files will be cached. While you are in development I recommend changing the version of the file being cached. This can be done by updating the wp_enqueue_script (js … Read more

How can I make css inline?

For some reason, taking out the beginning / solved my issue: <style> <?php include(“wp-content/themes/twentyseventeen/style.css”);?> </style> After doing this, I removed it because I realized how much slower it made the page load.

Full screen nav menu block with avada theme

Select the Full Width Mega Menu on/off selector in Avada settings. Here’s the steps to follow covered on that url: How To Set The Mega Menu To Full Width Step 1 – Go to WP Dashboard > Appearance > Menus, locate the first level menu item and click the Avada Options button. Step 2 – … Read more

WordPress Child theme fails to override parent theme css

I see the issue, there is a second call to main.css : <link rel=”stylesheet” id=”faxhion-css” href=”http://www.rareselect.co.uk/wp-content/themes/faxhion/main.css?ver=4.8.1″ type=”text/css” media=”all”> <link rel=”stylesheet” id=”faxhion-child-css” href=”http://www.rareselect.co.uk/wp-content/themes/faxhion-child/style.css?ver=0.1″ type=”text/css” media=”all”> <link rel=”stylesheet” id=”plugins-css” href=”http://www.rareselect.co.uk/wp-content/themes/faxhion/assets/css/plugins.css?ver=4.8.1″ type=”text/css” media=”all”> <link rel=”stylesheet” id=”fontawesome-css” href=”http://www.rareselect.co.uk/wp-content/themes/faxhion/assets/css/font-awesome.min.css?ver=4.8.1″ type=”text/css” media=”all”> <link rel=”stylesheet” id=”style-css” href=”http://www.rareselect.co.uk/wp-content/themes/faxhion/assets/css/main.css?ver=4.8.1″ type=”text/css” media=”all”> The one you are calling with id=”faxhion-css” its loading nothing its a 404 … Read more

Show class from css in format dropdown

Array value ‘content_css’ is not enough, TinyMCE can’t simply get the classes from the custom.css file. You need to define the list of styles you want in the dropdown: function my_format_TinyMCE( $in ) { $in[‘content_css’] = get_template_directory_uri() . “/custom.css”; $in[‘importcss_append’] = TRUE; $in[‘style_formats’] = json_encode(array( array(‘title’ => ‘Title for Style #1’, ‘classes’ => ‘example-class’), array(‘title’ … Read more

Why would a theme writer put their CSS in one long string? [closed]

The main file is minified, so it will be smaller and faster to load. But, the author provided you with the development file version. style.css and style.dev.css are basically the same files, but the dev version is readable, and the main one minified. All WordPress default CSS/JS files are provided with normal and minified version … Read more