Okay
  Public Ticket #1594076
Hide Subcategories blog
Closed

Comments

  • Manuel Contreras Lara started the conversation

    Hello support team, 2 years working with Salient, amazing theme!

    Actually using BLOG ULTIMATE.
    I need support for 2 questions:

    1. Hide the subcategories of the blog on a page, that is, I need only the parent category to be shown  (and subcategories dependent on that category do not appear).

    2. On the other hand, the opposite, on another page I just need to show the subcategory (and hide the parent category and the other subcategories of that category).

    The problem is that now when you show a category the subject also shows all the subcategories dependent on it, and vice versa, when you show a subcategory, all the other dependent subcategories (even the parent category) also appear.

    I hope the question is understood.

    Thank you very much in advance!
    Greetings
    Manolo

  •  9,007
    Tahir replied

    Hey M,

    The only way to hide the categories is to use there class names like this :

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    a.viviendas {
        display: none !important;
    }
    

    See screenshot : http://prntscr.com/joz5o5

    Best


    ThemeNectar Support Team 

  • Manuel Contreras Lara replied

    Hi Tahir, thanks for your fast reply...

    I donĀ“t know if you understand what I need.

    Attached I send you some images to clarify:

    1. IMAGE1: categories and subcategories of my blog posts. I need to show in my home page (Inicio) a masonry blog posts ONLY WITH PARENT CATEGORIES (Despachos, Plantas Bajas and Viviendas), HIDING all subcategories posts of that parent categories.
    2.  IMAGE2: into the category page, I need to show ONLY THE SUBCATEGORIES POSTS, not the parent category posts.

    Many thanks in advance!

    Manolo

  •  9,007
    Tahir replied

    Hey Again,

    I cant seem to view any parent Categories at the moment . Let us know .

     Thanks 


    ThemeNectar Support Team 

  • Manuel Contreras Lara replied

    Hi Tahir...

    Thanks.

    3 questions:

    1. How can I exclude PARENT CATEGORY BUTTON, AUTHOR, DATE and NUMBER COMMENTS from the single blog posts header? Attached image.

    2. How can I also exclude the image, AUTHOR AND DATE from the bottom (Recommended for you posts Section) Attached image.

    3. It is possible that category link in (Recommended for you posts Section) appears but not work? I need that link appears but not work. Attached image.

    Thank you very much for your support!!

    Greetings

    Manolo



  •  9,007
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    body[data-button-style*="slightly_rounded"] #page-header-bg[data-post-hs="default_minimal"] .inner-wrap > a {
        display: none !important;
    }
    #page-header-bg[data-post-hs="default_minimal"] #single-below-header {
        display: none !important;
    }
    .nectar-recent-posts-slider_multiple_visible .recent-post-container.container .strong a {
        display: none !important;
    }

    Thanks


    ThemeNectar Support Team 

  • Manuel Contreras Lara replied

    Hi Tahir, WORKS PERFECTLY!!!

    Many thanks...

    But still waiting for points 2 and 3 of my questions.

    Many thanks in advance.

    Greetings

    Manolo


  •  9,007
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    .related-posts[data-style="material"] .meta-category a {
       pointer-events: none !important;
    }
    .related-posts[data-style="material"] .grav-wrap {
        display: none !important;
    }

    Thanks


    ThemeNectar Support Team 

  • Manuel Contreras Lara replied

    Thanks you very much Tahir!

    WORKS PERFECTLY!

    You are the best  ;)

    Many thanks for your support

    Manolo