Enqueue Child CSS to Load After Bootstrap CDN

Adding the dependency should work. You are not calling your theme styles file correctly though. You need to move your theme-style.css file down to the root folder of the theme itself and name it style.css. So your function should look as follows: function my_enqueues() { wp_enqueue_style( ‘bootstrap-css’, ‘//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css’ ); wp_enqueue_style( ‘theme-css’, get_stylesheet_uri(), array( ‘bootstrap-css’ ) … Read more

How do I enqueue a js file in functions.php for a if lt IE 9 statement? [duplicate]

You can do it in two ways…. Solution One: <?php add_action( ‘wp_head’, ‘myscript’ ); function myscript(){ echo ‘<!–[if lt IE 9]><script src=”https://wordpress.stackexchange.com/questions/138051/your_js_file_path”></script><![endif]–>’; }; ?> Solution Two: <?php global $wp_scripts; wp_register_script( ‘jsFileIdentifier’, ‘YourJsFilePath’, array(), ‘3.6.2’ ); $wp_scripts->add_data( ‘jsFileIdentifier’, ‘conditional’, ‘lt IE 9’ ); ?>

Adding class to featured image

You can add custom class to post thumbnails. the_post_thumbnail accepts array of attribute $attr where you can specify image class. So your code will be. <div class=”home-featured-img”> <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. the_post_thumbnail( ‘full’, array( ‘class’ => ‘responsive-class’ ) ); // show … Read more

Loop through Navbar, Output Icons

There are 4 arguments that might help you with wp_nav_menu(): before – “(string) Text before the link text.” after – “(string) Text after the link text.” link_before – “(string) Text before the link.” link_after – “(string) Text after the link.”

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)