Support » Plugin: Yoast SEO » How can I apply Yoast formatting to custom titles?

  • Resolved JacobTheDev

    (@revxx14)


    Is there a function or filter that will automatically apply a the Yoast SEO title settings to a string? For example, if I plug in “Hello World”, it would output “Hello World | My Site Name”.

    I have a handful of custom templates that I need to manually construct titles for, and it’d be handy to simply apply a Yoast function against the page title to ensure that my title are in the same format as the other titles on the site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil

    (@devnihil)

    There is not a filter that operates in the way that you described. However, you can use the developer filters of wpseo_title to modify the title description. You can find more information on the available filters here and example usage of some of them here.

    Unfortunately, we can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Can I request that such a function be added to the plugin at some point in the future? It’d be very useful to have as a theme developer.

    Plugin Support amboutwe

    (@amboutwe)

    Please submit feature requests to our GitHub repository for Yoast SEO. You will need an account to create a new issue for your feature request.

    Please provide as much information about the feature request and don’t forget to include the URL to this conversation in your feature request!

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.