Assistance with wp_title function

Basically, if I understand your question properly, you will want to look for another file named “header.php” (or “page-{something}-header.php” for a special header that only applies to a specific page type), which represents what is output by wp-head() (shown in your code). If you open header.php, you should find something like the following: <head> <title> … Read more

How do I replace title with my plugin?

Please try this code hope it will solve your problem. add_filter( ‘wp_title’, ‘theme_custom_title’, 20 ); function theme_custom_title $title ) { return str_replace(‘your old title’, ‘your New title’, $title); } // changes the “Enter title here” to “Enter some New title” add_filter(‘gettext’, ‘custom_rewrites’, 10, 4); function custom_rewrites($translation, $text, $domain) { global $post; $translations = &get_translations_for_domain($domain); $translation_array … Read more

Title image is missing ( but is not the WP 3.5 issue )

you can try this filter add_filter(‘wp_get_attachment_image_attributes’, ‘my_img_title’, 10, 2); function my_img_title($attr, $attachment = null){ $attr[‘title’] = get_post($attachment->ID)->post_title; return $attr; } It should give the the extra title attribute in the img tag. You can also use the ‘post_thumbnail_html’ filter to edit the html output. ps: here is a similar question: Display info from custom fields … Read more

double page title [duplicate]

I appreciate your comments, I have looked into a possible repeated question, however I did not find it as helpful as the last comment by @michel after looking into the functions.php file I found this filter add_filter( ‘wp_title’, ‘burger_wp_title’, 10, 2 ); function burger_excerpt_length( $length ) { return 50; } Which I have gotten rid … Read more

Site name not showing in browser bar, only url

CSS will not influence it. Check your theme’s functions.php file (or similar) to see if it’s transforming the title. add_filter( ‘wp_title’, ‘some_function_name’ ); You can read more about it in the Codex: https://codex.wordpress.org/Function_Reference/wp_title#Customizing_with_the_filter