1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Forum Icons Working, but not for subforums - what's wrong with my code?

Discussion in 'Styling and Customization Questions' started by Chris Radford, May 9, 2015.

  1. Chris Radford

    Chris Radford Member

    Hi,

    If you see here; http://www.onefootballforum.co.uk/ you will notice we have applied unique forum icons to each section. However, we can't get them to work for the subforums.

    Example: http://www.onefootballforum.co.uk/index.php?forums/announcements.6/ (You will see Support & Feedback is a subsection, but the icon doesn't display). I've tried the code below;

    Code:
    .node .node_41 .forumNodeInfo .nodeIcon, .node .node_41 .categoryForumNodeInfo .nodeIcon {
    background-image: url("images/icons/Support-and-feedback.png");
    background-position: 0px 0px;
    }
    .node .node_41 .forumNodeInfo.unread .nodeIcon, .node .node_41 .categoryForumNodeInfo.unread .nodeIcon {
    background-image: url("images/icons/Support-and-feedback.png");
    background-position: 0px 0px;
    }
    
    This has worked for all our forums on the homepage, but for none of the subforums.

    Can anybody please shed some light about what's my wrong my code?

    Many thanks,
     
  2. Dylan V

    Dylan V Well-Known Member

    Hi,

    Try with that:
    Code:
    .node_41 .forumNodeInfo .nodeIcon,
    .node_41 .categoryForumNodeInfo .nodeIcon
    {
        background-image: url("images/icons/Support-and-feedback.png") !important;
        background-position: 0 0 !important;
    }
    
    .node_41 .forumNodeInfo.unread .nodeIcon,
    .node_41 .categoryForumNodeInfo.unread .nodeIcon
    {
        background-image: url("images/icons/Support-and-feedback.png") !important;
        background-position: 0 0 !important;
    }
     
    Chris Radford likes this.
  3. Chris Radford

    Chris Radford Member

    Worked a treat, thank you.
     

Share This Page