Show video as part of the post?

When I want to embed a video on a WP post I use the html5 <video> tag. It’s very simple to put into the html code and is much like the <img> tag. W3Schools breaks it down for dummies. Here is their sample code: <video width=”320″ height=”240″ controls> <source src=”https://wordpress.stackexchange.com/questions/259420/movie.mp4″ type=”video/mp4″> <source src=”movie.ogg” type=”video/ogg”> Your … Read more

“add_theme_support” for custom footer color?

You can use following class put inside your theme’s functions.php file. Theme Customization API will render the custom color selector control on the Theme customizer from this. class MyTheme_Customize { public static function register ( $wp_customize ) { $wp_customize->add_section( ‘mytheme_options’, array( ‘title’ => __(‘MyTheme Options RR’, ‘twentynineteen’ ), //Visible title of section ‘priority’ => 3, … Read more

check current_theme_supports in admin_menu hook

Not really sure what you’re asking here, but this allows theme support for navigation menus in your theme. Place this block of code in your theme’s functions.php file. if(function_exists(‘register_nav_menus’)){ register_nav_menus( array( ‘header_navigation’ => ‘Header Navigation’, ‘main_navigation’ => ‘Main Navigation’, ‘footer_navigation’ => ‘Footer Navigation’ ) ); }

How to add a custom font in a theme

To use a custom font, simply upload the font to your theme folder and then add a CSS @font-face declaration to the top of your theme’s style.css file pointing to the new font: @font-face { font-family: CustomFont; src: url(‘CustomFont.ttf’); } You can then reference that custom font in other CSS styles, for example: .entry-content { … Read more

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