Rectangle/bar under the title, with automatic date (month + year)
-
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: (visible only to logged in users)
-
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
-
.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 ( | ).
-
Posted, but it does not work. Nothing is displayed. I also tried to remove the title and the black bar, but nothing is displayed.
-
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.
- The topic ‘Rectangle/bar under the title, with automatic date (month + year)’ is closed to new replies.