Plugin Author
pepe
(@pputzer)
What version of WordPress and what theme are you using? Normally this should not happen.
WordPres 4.4.2, theme “Catch Box”. Did you look at the code I mentioned? As far as I can see, it specifically refers to the exclusion of <h1> and <h2> – which is the behavior I observed.
Plugin Author
pepe
(@pputzer)
The issue is not caused by that code, but rather by the theme using a filtered value for the <title> tag. Please have a look at the way the theme fills the <title> tag and post that code snippet here. (I’m assuming it does not use add_theme_support( 'title-tag' );.)
Plugin Author
pepe
(@pputzer)
Ah, I just saw that this is a free theme. I’ll have a look at it myself.
Plugin Author
pepe
(@pputzer)
Have you got a link where I can see the problem on your site? I cannot reproduce the behaviour you describe with the free version of Catch Box.
Unfortunately, I can not reproduce it anymore, too. On Saturday, the problem was pretty much stable (do not exclude <h1>and <h2>, get a lot of ­s in <title> – exclude <h1> and <h2>, no ­s in <title>). Turned on and off the issue a couple of times for testing, the issue was perfectly reproducable. The only plugin updated since yesterday is the “Add Meta Tags” plugin – which interferes with the <title>, too. I´ll have a look at the code changes of that plugin …
OK, it´s still reproducable. Had to use Chrome or IE to see the ­s in <title>. See https://die-computermaler.de/impressum/ .
Plugin Author
pepe
(@pputzer)
Please try disabling the Add Meta Tags to see if the problem is triggered by wp-Typography alone.
Plugin Author
pepe
(@pputzer)
I’ve since installed both Catch Box and Add Meta Tag locally. Neither apply wp-Typography’s filters to the <title> tag. Please disable all your plugins except wp-Typography and re-enable them one by one to see which one is the cause.
(As a workaround, if you are just concerned because of soft hyphen rendering, you can disable hyphenation in headings via the wp-Typography settings.)
Interestingly, the “disable hyphenation in headings” setting does not have any effect in my installation: Even if I disable hyphenation in headings from the settings, h1, h2 and title are still hyphenated.
Testing plugin compatibility will take some time … I´ll keep you updated.
Many thanks for your support!
Plugin Author
pepe
(@pputzer)
Then something strange is going on. I suspect some plugin applies filters hooked to the_content to the whole page.
Temporarily deactivated (one-by-one) any plugin hooking the_content in my production environment (ouch!) – no change, still ­s in <title>.
Installed a test WP environment, copied over my live plugins directory and activated wp-Typography as the only plugin with defaults. Still ­ in <title>. Excluded <h1> and h2: no ­s in <title>. The issue is pretty much stable and reproducible even in my very limited test environment. I´m confused ;-).
Actually, it even happens with Twenty Fourteen.
Plugin Author
pepe
(@pputzer)
Can you post some minimal example content that triggers the behavior in a code block here? I’m trying to reproduce this in a fresh installation locally.
You are using WP 4.4.2 with wp-Typography 3.2.3? Site language? Just the default settings for wp-Typography?
Plugin Author
pepe
(@pputzer)
OK, I have finally been able to reproduce this, though I’m not sure how the filter get’s applied to the title.