WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: wp-Typography] Span class in titles corrupts headlines (6 posts)

  1. Andreas Beer
    Member
    Posted 4 years ago #

    Wrapping of initial quotes and/or caps works well, except in titles.

    Using Tarski 2.6 headlines turn into something like this when wp-Typography wraps part of the text into a span class:

    "Yabba dabba do", says Fred Flintstone of GMC->Yabba dabba do, says Fred ...

    I don't know, whether this is just an issue with Tarksi, but it might be helpful if the next plugin version would give users a choice of where to apply span class wrapping.

    http://wordpress.org/extend/plugins/wp-typography/

  2. DuncanFeldane
    Member
    Posted 4 years ago #

  3. Andreas Beer
    Member
    Posted 4 years ago #

    Oh, brilliant. Thank you!

  4. Andreas Beer
    Member
    Posted 4 years ago #

    Oh, sorry. Not brilliant. It doesn't work.

  5. kingjeffrey
    Member
    Posted 4 years ago #

    @sauerland

    This problem occurs when HTML tags are inserted into the title attribute of another html tag. The the_title() method returns the raw title text (HTML elements and all), and should never be used to provide content for any HTML element. Rather, you should use the_title_attribute().

    If this problem is occurring for you, then the_title() is improperly used somewhere in your theme.

    Jeff

  6. Andreas Beer
    Member
    Posted 4 years ago #

    OK, I got it. Just leaving HTML elements like h1, h2 and so forth unprocessed put titles strait again. Thank you, Jeffrey.

Topic Closed

This topic has been closed to new replies.

About this Topic