• Report Links
    We do not store any files or images on our server. XenPaste only index and link to content provided by other non-affiliated sites. If your copyrighted material has been posted on XenPaste or if hyperlinks to your copyrighted material are returned through our search engine and you want this material removed, you must contact the owners of such sites where the files and images are stored.
  • Home
  • -
  • New Pastes

Custom images (icons read/unread) in nodes

  • Thread starter King
  • Start date Nov 13, 2021

King

Administrator
Joined
Jul 12, 2021
Messages
25,005
Reaction score
5
Points
38
  • Nov 13, 2021
  • #1
Custom images (icons) in nodes

This tutorial shows how to put custom images to mark "read" and "unread" with different images.



​
Copy on template: extra.less

Code:

Code:
/***** START // Node icons with custom image (https://thejavasea.com) *****/

.node.node--id? {
    .node-icon i { display: none; }

    &.node--forum {
        .node-body {
        }
        .node-icon {
            background-image: url('Unread_IMG.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
        &.node--read .node-icon {
            background-image: url('Read_IMG.png');      
            webkit-filter: none !important;
            filter: none !important;
        }
    }
}

/***** END // Node icons with custom image (https://thejavasea.com) *****/

Replace:
· "?" > Your node ID.
· "Unread_IMG.png" > Image you want to use on unread nodes.
· "Read_IMG.png" > Image you want to use on read nodes.

Replace depending on the type of node ...

· ".node--forum" > .node--category
· ".node--forum" > .node--page
· ".node--forum" > .node--link

Add / change css to adjust the image to the desired taste

How do I find the ID?
If you hover over the node's title (in Google Chrome), the node's address appears in the lower left corner of the window. The number at the end is the ID.

Continue reading...
 
https://xenforo.be/
Upvote 0 Downvote
You must log in or register to reply here.
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email
  • Home
  • -
  • New Pastes
  • Terms and rules
  • Privacy policy
  • Help
  • Home
AMP generated by AMPXF.com
Menu
Log in

Register

  • Home
    • Go Premium
  • Go Premium / Advertise
  • New Ad Listings
  • What's new
    • New posts
    • New Ad Listings
    • Latest activity
  • Members
    • Registered members
    • Current visitors
X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?

X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?