Wrong span calls
-
Hello
I like this plugin a lot. Yet, it produces errors on my theme.
While I’d like to show the subtitles in the title of a single post only and nowhere else, the plugin behaves differently: It shows the subtitles in category view (with wrong styling and destroying the title because looking at the source code of the loaded page, the subtitle span seems to be loaded in the title tag of the actual title, making the title be shown twice with “> letters before it). Your fix in another thread helped:
function custom_subtitle_view_supported() { if ( in_the_loop() && is_singular() ) { return true; } } // end function custom_subtitle_view_supported add_filter( 'subtitle_view_supported', 'custom_subtitle_view_supported' );
…yet as soon as I’m in singular view, the sidebar widget displaying the latest articles will display the subtitle again and social network sharing buttons don’t work correctly anymore – for instance, the Twitter sharing button doesn’t simply receive the page link to share, but this:
<span class= https://website.com/link
While the link is correct, the span call should definitely not be in there.I’ve had similar problems with a different theme by a different author.
What should I do?
Thank you.
- The topic ‘Wrong span calls’ is closed to new replies.