Hi, you can use shortcode for dropcap in your post. Simply insert:
[dropcap]H[/dropcap]ello, welcome to my world...
where should i insert that? in php or css? Thanks
Ok, got it, I inserted it inside the post itself at the beginning and it worked. However Is there a way to code this inside php or css so I don’t have to do this for every post? Thanks
One option might be to “fake it” with some custom CSS. Get a custom CSS plugin and use this code:
.entry-inner:first-letter {
color: #444;
display: block;
float: left;
font-size: 94px;
line-height: 0.9em;
font-weight: 600;
margin: 0 10px 0 0;
}
This may fail in cases with foreign languages, though.
I actually put that in the custom sheet that comes with wordpress jetpack but it didn’t work properly. I tried a few other things but none worked properly, so i guess i just have to manually insert it into my posts. If anyone has solution to this, would be appreciated
Can you post a link to your site?
hi stephen, im just going to stick with the manual insertion since i only need the dropcaps for a few certain posts. thanks though, and thanks to the guy who answered me first, will mark this as solved.
at me too this feature does not work what to do?
[dropcap]H[/dropcap]ello,
This works fine on the individual post, but when viewing the post preview in the article list, it makes the first letter completely disappear.