Home
/
Admin
/
Limit SEO Title to 60 characters
Duplicate Snippet
Embed Snippet on Your Site
Limit SEO Title to 60 characters
This filter limits the SEO Title length to 60 characters throughout the website
php | |
| <?php
|
| add_filter( 'aioseo_title', 'aioseo_filter_title' );
|
| function aioseo_filter_title( $title ) {
|
| if ( strlen($title) > 60 ) {
|
| $title = substr($title, 0, 60);;
|
| }
|
| return $title;
|
| }
|
| |
| |
Comments