Override post-formats in child theme

It’s import to set the priority for your after_setup_theme higher than your parent theme. The default priority is 10. Using the twentysixteen as example, use priority 11 on child themes’ ‘after_setup_theme’ action. Exemple below: function twentysixteen_child_setup() { add_theme_support( ‘post-formats’, array( ‘video’, ) ); } add_action( ‘after_setup_theme’, ‘twentysixteen_child_setup’, 11 );

Strange ASCII characters overlapping content

It seems that error is in your theme.min.css. The Font Awesome Icon which should appear in the browser is added via CSS using content. But the CSS does not contain the icon information but these weird looking characters. For Example: .fa-music:before{content:”ï��”} I cannot tell why your minified CSS has these characters. This could be: a … Read more

How to use add_theme_support(‘html5’)?

According to the documentation, you must pass an array of items where you want to enable HTML5 markup: add_theme_support( ‘html5’, array( // Any or all of these. ‘comment-list’, ‘comment-form’, ‘search-form’, ‘gallery’, ‘caption’, ) ); The documentation also recommends using add_theme_support() on the after_setup_theme hook, stating that the init hook may be too late for some … Read more

Background image not appearing

custom background can be used in below way: $defaults = array( ‘default-color’ => ”, ‘default-image’ => ”, ‘default-repeat’ => ”, ‘default-position-x’ => ”, ‘default-attachment’ => ”, ‘wp-head-callback’ => ‘_custom_background_cb’, ‘admin-head-callback’ => ”, ‘admin-preview-callback’ => ” ); add_theme_support( ‘custom-background’, $defaults ); Example usage: $args = array( ‘default-color’ => ‘000000’, ‘default-image’ => ‘%1$s/images/testback.jpg’, ); add_theme_support( ‘custom-background’, $args … Read more

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