Support » Plugins » Hacks » Place a logo/icon next to an image in a post

  • Tyler

    (@lylienster)


    Hello,

    I want to place a small logo next to every image within a post (the logo could be above, below, left, right of the image, doesn’t mater). I can detect images within a post (get their ids and links).

    Is there a way to do this using php plugin? I don’t know much about css.

    Thanks
    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • ultimat1

    (@ultimat1)

    Are you referring to “featured” images or just images that you insert into the post content?

    Thread Starter Tyler

    (@lylienster)

    Images that I insert into the post content.

    ultimat1

    (@ultimat1)

    Hmm. That would be a bit more difficult to code, but could be done. I am not aware of any plugins that do this. I searched Google but to no avail. Wish I could be of more help. :-/

    Thread Starter Tyler

    (@lylienster)

    Hi ultimat1,

    Thank you for trying! For now I can place my logo next to an image by manually putting html code for image in the caption section when I insert the image. Guess I will need create a function similar to the caption function.

    Moderator bcworkz

    (@bcworkz)

    I believe you could use a CSS pseudo-element to insert content before or after all img elements of a certain class. Something like this (untested):

    img.show-logo::before {
        content: url(logo.gif);
    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Place a logo/icon next to an image in a post’ is closed to new replies.