Forums

Drop Cap in Search Results (4 posts)

  1. masey
    Member
    Posted 11 months ago #

    So I'm currently implementing a stylish drop cap on each of my blog posts using the following short code: (eg. [dropcap2]M[/dropcap2] ). This works beautifully except for when you run searches.

    Say I have a post that starts "The cow jumped over the moon...". When this post appears in search results, it looks like this:

    "he cow jumped over the moon..."

    Obviously this is because the search results page doesn't recognise the drop cap short code so the first letter is just left off altogether.

    Can anyone tell me how I go about allowing the drop capped letter to be included on these search result pages?!?!

    Thanks.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

  3. masey
    Member
    Posted 11 months ago #

    Ermmm... ok "esmi".

    Maybe you didn't read my post? I know HOW to do the drop cap using the short code I have set up on WordPress.

    I'm looking for a way to make sure the short-coded drop cap shows up on the search results pages.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    I did read your post, thanks. You cannot use the drop caps shortcode in search.php - which means you have to try an alternative method.

Reply

You must log in to post.

About this Topic