WordPress keeps showing mobile version on Internet Explorer

When I had this issue it was because I was missing something from the <head>. Below is the head from the basic template on the bootstrap website. <head> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <!– The above 3 meta tags *must* come first in the head; any other head content must come … Read more

Bootsrap.css Not Working [closed]

You appear to be loading in the file twice. Also you need to make sure that the function is being tied into a hook in order to make it load. So the example direct from the WordPress codex is: // Register style sheet. add_action( ‘wp_enqueue_scripts’, ‘register_plugin_styles’ ); /** * Register style sheet. */ function register_plugin_styles() … Read more

Modify YouTube Embed Code to fit theme

If you’re using the block editor, the fix is simple: add_theme_support( ‘responsive-embeds’ ); You can also make the iframe responsive using pure CSS, just wrap it in a div: <div class=”yt-container”> </div> .yt-container { position:relative; padding-bottom:56.25%; padding-top:30px; height:0; overflow:hidden; } .yt-container iframe, .yt-container object, .yt-container embed { position:absolute; top:0; left:0; width:100%; height:100%; } This article … Read more

Enque a stylesheet in functions.php to override Bootstrap

Note wp_enqueue_style() should be placed inside a callback function to wp_enqueue_scripts add_action( ‘wp_enqueue_scripts’, ‘callback’ ); Like your code in the question shows, so put your loading of the custom stylesheet with wp_enqueue_style() inside it. Last but not least, CSS is processed in a way that the last style definition is used. So by loading your … Read more

bootstrap 4 carousel inside every post of a page [closed]

First, create a custom post type for your portfolio posts: // Register Custom Post Type function portfolio_cpt() { $labels = array( ‘name’ => _x( ‘Portfolio’, ‘Post Type General Name’, ‘text_domain’ ), ‘singular_name’ => _x( ‘Portfolio’, ‘Post Type Singular Name’, ‘text_domain’ ), ‘menu_name’ => __( ‘Portfolio’, ‘text_domain’ ), ‘name_admin_bar’ => __( ‘Portfolio’, ‘text_domain’ ), ‘archives’ => … Read more