My website is not showing Footer section

Please add below code in your footer.php file above included JavaScript files : <?php if ( is_active_sidebar( ‘footer-1’ ) ){ dynamic_sidebar( ‘footer-1’ ); } if ( is_active_sidebar( ‘footer-2’ ) ){ dynamic_sidebar( ‘footer-2’ ); } if ( is_active_sidebar( ‘footer-3’ ) ){ dynamic_sidebar( ‘footer-3’ ); } ?>

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

How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?

You should use the PHP modulo operator for that. Since you need two different layouts, you should calculate your classes numbers according to $count % 2 and ($count + 1) % 2: <?php $count = 0; foreach ($howtoplaycontent as $hpc): ?> <div class=”row courses_row” style=”background-color: #f8f8f8″> <div class=”container”> <div class=”row” style=”padding: 15px;”> <div class=”col-lg-6 course_col … Read more

Bootstrap button menu on wordpress

The following should setup your menu with the correct classes and IDs applied to your container and ul. The codex entry for wp_nav_menu lists all the possible arguments. wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘container_class’ => ‘menu-menu-container’, ‘menu_id’ => ‘menu-menu’, ‘menu_class’ => ‘btn-group’ ) ); You can then add the required classes to the menu items … Read more

wp_nav_menu not displaying the right way

WordPress navigation menus won’t conform to styling or coding changes if they are being built by default. You have to actually go in and create the menu in Appearance > Menus and assign it to the menu location. After you do that, it should conform to coding/styling standards you set, as opposed to system defaults.

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