The function then uses the lastvisit time to find the date the post was published, and if it is earlier than the lastvisit time, it appends a "new" tag to the title. After inserting the code snippet, just scroll down and select "Auto-Insert" for the insertion method .
auto insert So you could call it “Post Title New Tab Style” and “CSS france business fax list ” should be the code type. post title Next, you can copy and paste the following lines of code into the Code Preview window: /* CSS to style blog post titles with the "New" label */ .
new-article { background-color : #4CAF50 ; /* Green background color dding : 2px 5px ; /* Padding around the label */ margin-left : 5px ; /* Adjust the margin to your preferencder-radius : 3px ; /* Rounded corners for the label */ font-size: 12px; /* Adjust the font size to your preference */ This small code simply sets the background color, text color, padding, margin, border radius, and font size of the "New" post label to your own preferences.
The function then uses the lastvisit time
-
- Posts: 211
- Joined: Mon Dec 23, 2024 3:35 am