Rectangle/bar under the title, with automatic date (month + year)

  • Author
    Posts
  • #137052

    It is possible to insert (as an example in Paint: https://imgur.com/a/uAYTgp2) a black bar under the title, with fixed text + one variable part: month and year? (no day)

    So that all the text in the black bar stays fixed/equal forever, while the month and year change automatically.

    If you can not insert the black bar, I can draw it with Paint and insert it as the only image along with the title, but the css of the month and year can be inserted?

    Thank you

    The blog I need help with is intellettualemoderno.com.

    #137060

    For the sake of translation maybe I have not explained well: if you can draw a black bar using css … then delete the current one from the title image

    #137085

    binarymoon
    Theme Author
    .masthead span.header-date {
    background: black;
    color: white;
    padding: 5px 10px;
    }
    
    .masthead span.header-date:before {
    content: 'Year 1 | ';
    }
    .masthead span.header-date:after {
    content: ' | Rivista etc';
    }

    You can use the above. Note the space before and after the pipe character ( | ).

    #137091

    Posted, but it does not work. Nothing is displayed. I also tried to remove the title and the black bar, but nothing is displayed.

    #137101

    binarymoon
    Theme Author

    Oh – I’ve just realised this isn’t possible with this theme. I have a similar theme where it is possible and I had assumed the feature was in this one as well.

    Sorry.

You must be logged in to reply to this topic.