• Resolved rhdr

    (@rhdr)


    Hi,

    im using this plugin to show excerpts from articles on my homapege. At the begining of each article I have name of author for each text.

    I would like to hide authors name in excerpt on homapage. How to do this?

    • This topic was modified 8 years ago by rhdr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    In the title of this topic you say that you want to “exclude text in specific tags”. Which tags? Are author names wrapped in tags? If so, you could use some CSS to hide the names from display. Otherwise you’ll have to provide some more details (eg. how are you adding the author to your post content?)

    Thread Starter rhdr

    (@rhdr)

    hello,
    im using simple <i> tags for italics, this is how homepage of my web looks:https://profil.kultury.sk/en/

    As you can see at first popular article there is name of text author i would like ot hide in excerpt

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, try this:

    1. Go to Widgets > WordPress Popular Posts and under “Display post excerpt” enable the “Keep text format and links” checkbox.
    2. Hit the Save button to apply changes.
    3. Add the following CSS code to your theme’s stylesheet:
      .wpp-excerpt i:first-of-type {
          display: none; /* This will hide the first I tag found on the excerpt which should be the one containing the author name */
      }
    Thread Starter rhdr

    (@rhdr)

    @hcabrera

    thank you Hector, it works! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to exclude text in specific tags in excerpt?’ is closed to new replies.