how to change content of publication date in cubic date

  • Unknown's avatar

    in cubic there’s a publication date for each entry or articles i want for some of them modify the content and add a sentence instead of the date and for some other i need to remove the date, or just erase the content so it won’t appear in home page..

    →modification works great with firebug ;)

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

  • Unknown's avatar

    Hi batmaxime

    If you have the custom CSS worked out and need to enter it:

    Select Appearance > Customize > CSS from your Admin Dashboard and enter the custom CSS there.

    You need to be on the WordPress.com Premium Plan for custom CSS to save. You can only preview custom CSS on the free plan.

  • Unknown's avatar

    hi g471n

    yes i have a premium plan, but what you mean by enter the custom css there.. i don’t have any css file, and honesltly i don’t know how to right one.. i thought that through that page i can select areas like in firebug and make some changes.. but it’s not working like that i presume..

  • Unknown's avatar

    Tools like firebug help us identify the CSS rules that we would like to make changes to.

    If you can give me more details about which entries you are wanting to alter I can help you figure out the custom CSS code.

  • Unknown's avatar

    the code below is supposed to be the css path to one of the entry i’m interested in according to firebug..

    what i want to do is replacing the publication date by a sentence for some entries and for the other ones i just want that the date don’t appear.. not necesseraly by disable the fonction but by erasing the content..like in the html console in firebug.

    html body.home.blog.logged-in.admin-bar.mp6.customizer-styles-applied.next-link.filter-on.title-with-content.has-sidebar.highlander-enabled.highlander-light.custom-colors.infinite-scroll.neverending.customize-support.pace-done.infinity-end div#page.hfeed.site div#content.site-content div#primary.content-area main#main.site-main article#post-217.post-217.post.type-post.status-publish.format-image.has-post-thumbnail.hentry.category-non-classe.post_format-post-format-image.color-done.color-1.post-loaded header.entry-header div.entry-meta span.posted-on a time.entry-date.published

  • Unknown's avatar

    As an example. To remove the date from your first post try adding the following line of custom CSS.

    .post-421 .entry-date.published {
        display: none;
    }

    Select Appearance > Customize > CSS from your Admin Dashboard and enter the custom CSS there.

    If you wanted to remove the dates from all posts you could use:

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

    this what i want to do in the link below

    the two bottom square on the right have publication dates as usual, what i want to do is remove or replace it, like in the other square

    is it much clearer?

    http://c.sdbx.co/1UhGbh0

  • Unknown's avatar

    Changing the text is a bit more tricky, but you could try something like this.

    .post-421 .entry-date.published {
        visibility: hidden;
    }
    
    .post-421 .entry-date.published:before {
        content: "Your new Text";
        visibility: visible;
    }
  • Unknown's avatar

    works great for the first post!!!!

  • Unknown's avatar

    it’s working great, but the text is not centered.. a little bit too much on the left side.. is it ajustable..?

  • Unknown's avatar
  • Unknown's avatar

    Try changing the last section to :

    .post-421 .entry-date.published:before {
        content: "Your new Text";
        visibility: visible;
        padding-left: 5.5em;
    }
  • Unknown's avatar

    almost perfect.. check

    http://c.sdbx.co/1LAdIRd

    i only change 5.5 by 4.5 otherwise le text is at the same high but much more on the right side..

    can we do this little last ajustment..?? idealy if the text can stay in the original position of the publication date..

    you’re my savior man!

  • Unknown's avatar

    in fact it is still not centered.. and on two line.. i was tricked by the console on the left of my screen.. sorry

    see

    http://c.sdbx.co/1EppsGK

  • Unknown's avatar

    Yes I see.

    I think this approach will only work if you limit the replacement text to a short phrase.

  • Unknown's avatar

    i can’t reduce the phrase…

  • Unknown's avatar

    is there another approach available..

  • Unknown's avatar

    if i want to make changes for every post i just have to replace the post number in the piece of code you gave to me..?

  • Unknown's avatar
  • Unknown's avatar

    ok thanx for your help g471N

    if someone got an other approach to solve my last prb, i appreciate ;)

  • The topic ‘how to change content of publication date in cubic date’ is closed to new replies.