Changing all the dates by categories

  • Unknown's avatar

    Hi, can I change all the dates by categories ?
    example 3 mars 2015 by Graphisme.
    Many Thanks

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

  • Unknown's avatar

    The category is shown at the bottom of posts and cannot easily be moved up after the date at the top of the posts.

    If you want the same text, “by Graphisme”, to appear after the date on all posts, we can do that with the following CSS which uses a pseudo selector and the “content” declaration like this.

    .entry-date:after {
        content: " by Graphisme";
    }
  • Unknown's avatar

    Many thanks, but I have 3 category : Design / Graphisme / Artwork.
    Im gonna search on the blog, but if you have a solution il be very interrested !

  • Unknown's avatar

    You know, we can do that by including the category CSS class. I’m seeing these categories right now on your site, but not seeing design:
    artwork
    divers
    graphisme

    Give the following a try for the Artwork category.

    .category-artwork .entry-date:after {
        content: " by Artwork";
    }

    You can edit the text between the quote marks in the content declaration as desired. If that works, then you can use that as a pattern and just change “artwork” to graphisme and design (or divers).

  • Unknown's avatar

    ok thanks, last one please ;)
    Is it possible to remove every date in the posts ?
    with this code

    .date-meta {
    	display: none;
    }

    it work wiyh this code for the main page but not for the posts

  • Unknown's avatar

    it’ ok I got it

    .single .entry-date {
        display: none;
    }
  • Unknown's avatar

    Hooray and you are welcome!

  • The topic ‘Changing all the dates by categories’ is closed to new replies.