• Resolved TAF

    (@tabisch)


    Hi,

    How can I add a small icon – similair to the one before the post date – before my reading time (Lesezeit in german)? Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jason Yingling

    (@yingling017)

    You can do that through some CSS. It would look something like this:

    .rt-prefix::before {
      content: url('../path/to/image.png');
    }

    You can add custom css through your site’s Appearance > Customizers > Additional CSS panel.

    Thread Starter TAF

    (@tabisch)

    Awesome, this worked. Any help how to get it in line now with the other icons? It looks a little above the rest. (Sorry, I know this is not really concerning the plugin.)

    Plugin Author Jason Yingling

    (@yingling017)

    You’ll probably want to position it absolutely and play around with the styles a bit.

    This would take a little more CSS like:

    .rt-prefix {
      position: relative;
      padding-left: 20px;
    }
    
    .rt-prefix::before {
      content: url('../path/to/image.png');
      position: absolute;
      left: 0;
      top: -2px;
    }

    You can play around with the padding-left and top numbers to get it aligned where you like.

    Thread Starter TAF

    (@tabisch)

    Thanks a lot. This worked perfect.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Icon’ is closed to new replies.