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

XF 1.4 Remove node title/description display for specific node

Discussion in 'Styling and Customization Questions' started by reddy ink, Jan 24, 2015.

  1. reddy ink

    reddy ink Active Member

    I would like to remove displaying of node/forum title and description for specific node(7).

    upload_2015-1-24_9-31-58.png
    Many thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to edit the template and use a node id conditional statement - see the link in my signature for that.
     
  3. reddy ink

    reddy ink Active Member

    Thank you for the reply.
    I am trying something like this

    <xen:if is="{$forum.node_id} == 7>
    .forum_list .title {display: none}
    </xen:if>
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You just need to wrap the code in a negative statement using !, rather than use display none.
     
  5. reddy ink

    reddy ink Active Member

    Thank you for the reply. Unfortunately, I don't know which template to modify to add the conditional code.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

  7. Steve F

    Steve F Well-Known Member

    You can hide it using CSS as well if you are not worried about the HTML still loading.

    Code:
    .node7 .titleBar
    {
            display: none;
    }
     
  8. reddy ink

    reddy ink Active Member

    Thanks a lot for the reply.
    Works great but it also removes thread title once you click on the thread. I need just the forum title to be not displayed.
    upload_2015-1-24_14-32-49.png
     
  9. Steve F

    Steve F Well-Known Member

    This area?
    upload_2015-1-24_14-38-48.png

    If so
    Code:
    .node7 #pageDescription {
    display: none;
    }
    If not then you will need to edit the template as Brogan said above, should be in thread_view template.
     
  10. reddy ink

    reddy ink Active Member

    Thank you for the reply again. I would like to remove NODE title from forum display but when I click on one of the thread, it takes to next page (thread display page).
    Here I would need thread title displayed on top.

    The solution you provided before took out both forum title display and thread title display from next page.

    Need title display on
    https://xenforo.com/community/threa...-display-for-specific-node.91518/#post-886670

    NO title on
    https://xenforo.com/community/forums/styling-and-customization-questions.47/


    upload_2015-1-24_14-58-52.png


     

    Attached Files:

    Last edited: Jan 24, 2015
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Try increasing the specificity to include the forum view template name class.
     
  12. reddy ink

    reddy ink Active Member

  13. Dylan V

    Dylan V Well-Known Member

    reddy ink likes this.
  14. Brogan

    Brogan XenForo Moderator Staff Member

    Even easier.
    Code:
    .node7 .forum_view .titleBar
    {
        display: none;
    }
     
  15. Dylan V

    Dylan V Well-Known Member

    He finally has a solution, this is the main.
     
    reddy ink likes this.
  16. reddy ink

    reddy ink Active Member

    Dylan V likes this.

Share This Page