Changes in enqueued / registered stylesheet paths not updating—why?

At long last, I have identified the issue. The theme I was working in used the Minikit theme starter, which has a function that strips version numbers. function minikit_remove_wp_ver_css_js($src) { if (strpos($src, ‘ver=”)) $src = remove_query_arg(“ver’, $src); return $src; } Naturally, the version numbers returned once I stopped calling this function.

Show post in slider

I used this to show images on slider .Try this <div class=”col-md-12″> <div class=”carousel carousel-showmanymoveone slide” id=”carousel123″> <div class=”carousel-inner”> <div class=”item active”> <div class=”col-xs-12 col-sm-6 col-md-3″> <img src=”https://wordpress.stackexchange.com/questions/217614/<?php echo plugin_dir_url( __FILE__ ) .”img/download-1.jpg’; ?>”></div> </div> <div class=”item”> <div class=”col-xs-12 col-sm-6 col-md-3″> <img src=”https://wordpress.stackexchange.com/questions/217614/<?php echo plugin_dir_url( __FILE__ ) .”img/download-1.jpg’; ?>”></div> </div> <div class=”item”> <div class=”col-xs-12 col-sm-6 … Read more

Displaying theme options in css

Although @Jevuska did solve my issue, I have found a much easier solution to adding dynamic CSS from my theme options page. Here we go! Add this to functions.php add_action(‘wp_head’, ‘my_custom_css’); function my_custom_css(){ require_once( get_template_directory() . ‘/css/theme-styles.php’ ); } Now you can treat theme-styles.php as a normal CSS stylesheet <style type=”text/css”> a { color: <?php … Read more

What controls responsiveness in WordPress?

WordPress has absolutely nothing to do with responsiveness, neither does themes or plugins. Responsiveness is controlled by media queries (CSS) set in stylesheets and the particular browser the site is viewed in. It is here where screen sizes are determined and checked against available media query rules. Just one note, older browsers like IE6, 7 … Read more

Displaying custom taxonomy terms active trail

Maybe better to use wp_list_catergories.. codex: wp list categories $args = array( ‘taxonomy’ => ‘type’, ‘orderby’ => ‘name’, ‘show_count’ => false, ‘pad_counts’ => false, ‘hierarchical’ => true, ‘title_li’ => ” ); <ul> <?php wp_list_categories( $args ); ?> </ul> and add to css: .current-cat{ background-color: #d86f08; }

Never Enqueued Stylehsheet

style.css is a requirement for any theme. Therefore you cannot dequeue it. You can however have a blank (except for the comments) style.css and enqueue another stylesheet for certain templates. To do so you would use wp_enqueue_scripts() like so : function my_enqueue_style() { if ( is_front_page() ) { wp_enqueue_style( ‘mystyle’, get_stylesheet_directory_uri() . ‘/mystyle.css’ ); } … Read more