WordPress.org

Ready to get started?Download WordPress

Forums

Initial Caps & Cyrillic (4 posts)

  1. geshwinn
    Member
    Posted 4 years ago #

    Hi guys,

    I am using a theme(medieval book) which makes the initial caps larger and with different styling using this code - WPguy. However it seems that I cannot use a Cyrillic character for that. Everything can be in Cyrillic but the initial cap is always displayed as "?".

    I asked the WPguy and he only said that it must be something with the php. Since I am no PHP expert any advice would be helpful.

  2. Izvarinskij
    Member
    Posted 4 years ago #

    Try css instead. For example:
    .hentry h2 + p:first-letter{ … }
    or
    .hentry h2 ~ p:first-of-type:first-letter{ … }

    (depends on html code you have).

    Note: this may not work in older versions of Internet Explorer.

  3. geshwinn
    Member
    Posted 4 years ago #

    Does that do the same thing as the code of wpguy?

    My page is http://gnomec.com and still can't make the initial cap Cyrillic.

  4. Izvarinskij
    Member
    Posted 4 years ago #

    Your site have different markup, you need this:

    .entry > p:first-child:first-letter{ … }

    But first you need to remove wpguy’s code, because it overrides style.

Topic Closed

This topic has been closed to new replies.

About this Topic