Skip to main content
edited title
Source Link
Johansson
  • 15.4k
  • 11
  • 43
  • 79

Custom Wordpress Title Can not set custom title on some WordPress setups

I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain wordpressWordPress setups I am unable to change the default title.

What usually works, but is not working in this situation:

function customtitle(){
    return "custom title";
}
add_filter('wp_title', 'customtitle', 10);

I'm also aware of the issues with changing custom titles and the yoast plugin. On the current wordpressWordPress setup i'mI'm working with yoast is not installed. I wanted to know if there was another hook or method that I can override the title over the current default title.

Custom Wordpress Title

I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain wordpress setups I am unable to change the default title.

What usually works, but is not working in this situation:

function customtitle(){
    return "custom title";
}
add_filter('wp_title', 'customtitle', 10);

I'm also aware of the issues with changing custom titles and the yoast plugin. On the current wordpress setup i'm working with yoast is not installed. I wanted to know if there was another hook or method that I can override the title over the current default title.

Can not set custom title on some WordPress setups

I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain WordPress setups I am unable to change the default title.

What usually works, but is not working in this situation:

function customtitle(){
    return "custom title";
}
add_filter('wp_title', 'customtitle', 10);

I'm also aware of the issues with changing custom titles and the yoast plugin. On the current WordPress setup I'm working with yoast is not installed. I wanted to know if there was another hook or method that I can override the title over the current default title.

Source Link

Custom Wordpress Title

I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain wordpress setups I am unable to change the default title.

What usually works, but is not working in this situation:

function customtitle(){
    return "custom title";
}
add_filter('wp_title', 'customtitle', 10);

I'm also aware of the issues with changing custom titles and the yoast plugin. On the current wordpress setup i'm working with yoast is not installed. I wanted to know if there was another hook or method that I can override the title over the current default title.