Can I add text icons on home page (in post info) and post pages? Triton Lite
-
Hi,
I’d like to add text icons to my posts, and I’d like them to show up on the main page and on each individual post page. Is this possible with CSS? I’m using the Triton Lite theme.
Thanks!
The blog I need help with is: (visible only to logged in users)
-
Can you explain a little more what you are wanting the text icons to do and where you are wanting to place them? You can certainly insert images (icons and otherwise) into posts and pages.
-
hello,
yes, I would like to insert an icon of a calendar, and if it’s posible, a specific date within the calendar icon, next to posts that are about an event. So I would like this icon to appear on the main page (next to the summary of each post, perhaps in the title area), as well as in the post page once you open up the post.
Thanks
-
Hi there, to put the image next to the title would require you to write individual CSS rules for each and every post that you needed to add the icon to by targeting them by their individual unique CSS ID. The following is a sample of the code for your post titled 2014.11.28 Moderna Museet Guided Tour in Spanish.
#post-534 .postitle { background: url("URL_OF_IMAGE") no-repeat scroll left top; padding-left: 57px; }You would replace URL_OF_IMAGE between the quote marks with the URL of your uploaded icon and then the padding-left value would be the width of your icon image. Something around 50-60px square looks like it would work well.
post-534 is the unique post CSS ID for that post. You can find that by using the web inspector in your browser or viewing the source code and finding that post in the HTML. In the opening “article” HTML tag will be the post ID. It looks like this:
<div id="post-534" class="...
IDs are always preceded in the CSS by a hash mark ( # ) as you see in my CSS example above. -
-
-
-
-
hello,
Sorry to bother you again, but now I’m trying to do it again, and when I click on “save” after I write the CSS code, nothing happens, and when I open up the CSS editor again, the code isn’t there anymore. Do you know why this could happen?
Thanks
-
@embestocolmo, this issue has been fixed. Can you again try saving some CSS and let us know if you have any problems?
-
-
-
it works fine in the main page, but when I open a post (individually), the calendar is chopped off at the middle. Do you know if this can be fixed?
-
Let’s add a little padding to the single post page entry titles with the following.
.single .postitle { padding-bottom: 35px; } -
-
- The topic ‘Can I add text icons on home page (in post info) and post pages? Triton Lite’ is closed to new replies.
