Comments (8)
See also this forum post where the user has double quotes in his Site Title which is throwing the character count off - https://wordpress.org/support/topic/error-calculating-title
from all-in-one-seo-pack.
we are working on Bug with character counter.
from all-in-one-seo-pack.
This issue is not because of html that is being counted in the length. This is because of All in one SEO Pack taking the length of the separator between the site title and page title. As you can see in the screenshot it is showing 3 even when there is no title as shown in screenshot. e.g. We have the title including website name and page title 'WN | Shop' , here length will be 9 including separator. Also do we need to trim the space if user intentionally add spaces left and to the right?
from all-in-one-seo-pack.
Hi,
The 3 Count is coming for %page_title% | %blog_title% setting at All In One SEO Setting
1 for %page_title%, another 1 for | and last for %blog_title%
If set %page_title% or nothing to Page Title Format, you will find 0 count on Each page
from all-in-one-seo-pack.
@nishant981, that's not the bug. The bug is with HTML characters included in the Site Title field in WordPress. Here are the steps to replicate this bug:
1). Go to Settings > General in WordPress and set the Site Title as A & B
2). Create a page called Test and scroll down to the All in One SEO Pack meta box and set the Title as ABC
3). You should see that the character counter shows 15 characters when it should show 11 characters
4). View the source code of this page and you'll see that the Title tag is output as this - <title>ABC | A & B</title>. You'll see that the & symbol is output in the source code as the HTML code & which is why the character count is 15 characters:
This is 15 characters: ABC | A & B
But this is 11 characters: ABC | A & B
This is only a bug when someone uses special characters in their Site Title and they set a Title in All in One SEO Pack.
from all-in-one-seo-pack.
Thanks for explaining, We will check it again and apply the fixes.
from all-in-one-seo-pack.
I have uploaded my code to git, please check and let me know it is fine and I can follow the same steps further
from all-in-one-seo-pack.
I found that this bug was fixed in v2.4
from all-in-one-seo-pack.
Related Issues (20)
- Bug: AIOSEO removes the "dashicons" stylesheet from WP frontend HOT 2
- The editor has encountered an unexpected error. HOT 2
- meta og:site_name generated despite being left blank HOT 2
- Robots.php error with PHP 8.1 HOT 2
- Call to Undefined Method - When saving a menu HOT 2
- Ping not working HOT 1
- The aiosp_opengraph_meta filter isn't working – cannot re-write og:url... HOT 2
- Updating link editor modal styles for WordPress 6.1 HOT 2
- Remove version number from generator meta tag HOT 1
- Version 4.3.3 broke query loop to cpt, pages, post after updating to WordPress 6.2 HOT 3
- Person/sameAs invalid type issue HOT 1
- Custom Archive and Polylang HOT 1
- Please remove "table.wp-list-table .column-name" css rule HOT 2
- Warning: Undefined array key "dashboardWidgets" after plugin update HOT 1
- Deprecated: Function print_emoji_styles in /wp-admin/index.php?page=aioseo-setup-wizard HOT 1
- TypeError in custom robots.txt editor HOT 2
- High number of deprecated notices HOT 2
- Does aioseo_options_internal need to be autoloaded? HOT 2
- aioseo_save_post filter not saving/persisting data HOT 3
- while activating got JS error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from all-in-one-seo-pack.