Skip to contentSkip to main navigation Skip to footer

Add Custom META Title

Squirrly SEO Add Custom META Title screen on a laptop

Squirrly SEO sets the meta title of a page from three places: the Title field of its SEO Snippet, the title pattern of its post type in SEO Automation, or the sq_title filter in your theme’s code. The snippet wins over the pattern, and the filter can change both.

Before you start

  1. Go to Squirrly > Technical SEO > SEO Metas.
  2. Check that Optimize the Titles is on.
  3. Click Save Settings.
Squirrly SEO Manage On-Page SEO Metas with Optimize the Titles and Optimize Descriptions
Optimize the Titles must be on for Squirrly to write the title tag.

If SEO Metas is missing from the menu, turn on On-Page SEO METAs in Squirrly > All Features first. SEO Metas explains the switch.

Set the title of one page

  1. Go to Squirrly > Optimize > Bulk SEO and pick the post type, or open the page in the editor and scroll to the SEO Snippet box.
  2. Click the METAs dot of the page, then Edit Metas.
  3. Write the text in Title. The tip above the field gives the length to aim for.
  4. Click Save.

The preview under the fields shows how the page will look in search results. On the live site, Custom SEO in the WordPress admin bar opens the same snippet. Edit the meta tags in Bulk SEO has the full walk-through.

Example on the demo store

The Meta Tags tab of the snippet holds the title. After Save, the same text is in the title tag of the page source.

Squirrly SEO snippet Meta Tags tab with Title, Meta Description, Meta Keywords and Canonical link
The Meta Tags tab of a demo post: the Title field, with the length counter under it.
Squirrly SEO title, robots, description, keywords and canonical tags in the page source
The title tag in the page source of a demo post, followed by the other metas (formatted for reading).

Set the title of a whole post type

Go to Squirrly > Optimize > Automation, open the post type and change its Title pattern. The default for posts is {{title}} {{page}}. Every page of that type without a custom snippet title uses the pattern, cut to the Title Length (75 characters by default). SEO Automation lists the patterns.

Change the title with the sq_title filter

Add this to the functions.php file of your child theme, or to a code snippets plugin. Change 123 to the ID of your post.

add_filter( 'sq_title', 'my_squirrly_title', 11 );
function my_squirrly_title( $title ) {
    if ( get_queried_object_id() === 123 ) {
        return 'Wet cat food for senior cats | Whisker Bowl';
    }
    return $title;
}

At priority 11 the filter gets the plain title text, after Squirrly has read the snippet and the pattern and before it wraps the text in the <title> tag. Always return $title for the other pages, or they lose their title. Hook Squirrly title and description with custom data has more examples.

Frequently asked questions

Which one wins, the snippet or the pattern?

The snippet title, when the field isn’t empty.

Is my custom title cut to 75 characters?

No, the Title Length only cuts titles built from patterns.

The page still shows the old title. Why?

Clear the page cache, then check that Load SEO Metas is on for that post type in Automation.

Was This Article Helpful?

Before you leave

Future of AEO GEO and AI Search!

Free Now. Free Forever.

It’s time to stop orbiting SaaS.

Be the Meteor.

10 Elite Tools. 1 Stack.