geshwinn
Member
Posted 2 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.
Izvarinskij
Member
Posted 2 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.
geshwinn
Member
Posted 2 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.
Izvarinskij
Member
Posted 1 year 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.