span class –> image

  • Unknown's avatar

    Hello!
    I want to add a image to all entry details.. ex: for data I want to add a little calendar before the date, for author name I want to add a little pencil before it and same thing I want to do for time (hour, minute), tags and category..

    I tried to do this with <span class=##> tag, but I didn’t managed to do it.. I know I have to put something in style.css, but don’t know the code..

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    It’s possible to add images to the front of content like that, but only if you can find a selector that will work in the theme you are using. What theme do you plan to use?

    Here is a basic example of how it could work. I used the WordPress logo as the image example, and you could change out the image link in the url() to something else. This example adds an image to the front of all links inside posts. You would need to use more specific selectors to target different types of links to get it to work how you described.

    .entry-content a {
    	background: url(http://s.wordpress.org/about/images/wpmini-blue.png) no-repeat;
    	padding-left: 18px;
    }
  • The topic ‘span class –> image’ is closed to new replies.