An unwanted inline style is added to my body tag

After searching a lot, I realized that elements inside my head tag are shown inside body tag and head tag contains nothing in my generated HTML code. This happened because I had used UTF-8-BOM encoding and by changing it to simple UTF-8 everything was fixed.

How to delete read more span on single post view?

As stated in the docs, if the quicktag <!–more–> is used in a post to designate the “cut-off” point for the post to be excerpted, the_content() tag will only show the excerpt up to the <!–more–> quicktag point on non-single/non-permalink post pages. WordPress adds <span id=”more-‘ . $post->ID . ‘”></span> to the content in this … Read more

Custom Template 404 for specific custom post type

This is going to track only post_type query var, but you also can add checks for query_vars of all your post_types or only ones you would like to get a custom 404 page for. add_filter( ‘404_template_hierarchy’, function( $templates ) { global $wp_query; if ( ” !== $wp_query->get(‘post_type’) ) { array_unshift( $templates, sprintf( ‘%s-404.php’, $wp_query->get(‘post_type’) ) … Read more

How to remove howdy dropdown menu content

You can use wordpress nodes to customize profile menu. Add this in functions.php add_action( ‘admin_bar_menu’, ‘remove_my_account’, 999 ); function remove_my_account( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘my-account’ ); } add_action( ‘admin_bar_menu’, ‘add_logout’, 999 ); function add_logout( $wp_admin_bar ) { $args = array( ‘id’ => ‘logout’, // id of the existing child node (New > Post) ‘title’ => … Read more

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