Home Analyst Portal
Options

Hiding Top Knowledge Articles on Home Page

Tom_HydeTom_Hyde Customer Advanced IT Monkey ✭✭✭
Sure there is something in a KB for this but can anyone provide me with the code to hide Knowledge Articles off the home page so only the Search Bar and Service/Request Offerings are displayed. Thanks

Best Answer

Answers

  • Options
    Aaron_BoockAaron_Boock Customer Advanced IT Monkey ✭✭✭
    I would also like to see some examples of how this can be done.
  • Options
    Joe_BurrowsJoe_Burrows Cireson Devops Super IT Monkey ✭✭✭✭✭
    +1 to @Jonathan_Boles

    and if using the standard home page:
    /*hide all topfav rows other than the first*/
    .topfav-row ~ .topfav-row {
       display:none;
    }
    /*add back/show the third topfav row*/
    .topfav-row ~ .topfav-row ~ .topfav-row {
       display:block;
    }  
    

  • Options
    Tom_HydeTom_Hyde Customer Advanced IT Monkey ✭✭✭
    Cheers @Jonathan_Boles that did the trick!
  • Options
    David_MeldrumDavid_Meldrum Member IT Monkey ✭
    +1 to @Jonathan_Boles

    and if using the standard home page:
    /*hide all topfav rows other than the first*/
    .topfav-row ~ .topfav-row {
       display:none;
    }
    /*add back/show the third topfav row*/
    .topfav-row ~ .topfav-row ~ .topfav-row {
       display:block;
    }  
    


    Hi Joe - Are you aware whether the code still works with the v6 platform? I've got a heap of other customisations in the custom.css file, however trying to hide the KB articles on the standard and alternative home pages doesn't work with the code in this article.


    Cheers,
    David
  • Options
    Joe_BurrowsJoe_Burrows Cireson Devops Super IT Monkey ✭✭✭✭✭
    edited October 2016
    Hi David

    The below works for home alt on v6 just tested and confirmed:

    .blocks > div:nth-child(1){&nbsp;<br>display:none;&nbsp;<br><span>}&nbsp;</span>


    For standard home page 

    .clearfix > div:nth-child(3) {
    	display: none; 
    	}

  • Options
    David_MeldrumDavid_Meldrum Member IT Monkey ✭
    Thanks, Joe.

    I found that you need to have the code to hide KBA's on the Primary Home page before the code to hide them on the Alternative page. It didn't work exclusively by itself.

    Cheers,
    David

  • Options
    Jonathan_BolesJonathan_Boles Customer Ninja IT Monkey ✭✭✭✭
    @Joe_Burrows and @David_Meldrum, thanks guys for bringing this back up for Portal V6! We are testing V6 in our sandbox and it's great to be able to use this in the new version as well!
  • Options
    Adam_MorrisAdam_Morris Customer IT Monkey ✭
    Does this still work with V7? I've tried the suggestions above but Top Knowledge Articles is still on the homepage.
  • Options
    Jody_SudburyJody_Sudbury Customer IT Monkey ✭
    edited July 2017
    Does this still work with V7? I've tried the suggestions above but Top Knowledge Articles is still on the homepage.
    Same, I've pasted a bunch of these into custom.css and it doesn't work. Still seeing the knowledge articles at the top.

    Can someone let us know if this is still supposed to work or if something is a little bit different?

    Thanks
  • Options
    David_Morris1David_Morris1 Member Advanced IT Monkey ✭✭✭
    I cant get this working on V7 or V8 any ideas?
  • Options
    David_Morris1David_Morris1 Member Advanced IT Monkey ✭✭✭
    figured it out for v7

    #servicecat-content > div > div > div.row.blocks > div:nth-child(1) { 
    display:none; 

  • Options
    SpoonerSpooner Member IT Monkey ✭
    Where does this need to be entered? I've tried putting all these example in the inetput/CiresonPortal/CustomSpace/custom.css & custom.js, but I still see the Top Knowledge Articles on the default Home Page.
  • Options
    PascalliPascalli Member IT Monkey ✭
    I am trying to do this, as well, but don't have access to the KB linked above.  What file are you entering these into?  Is it the custom.css?
  • Options
    Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Hi @Pascalli

    Yes, it will be the custom.css file.
  • Options
    PascalliPascalli Member IT Monkey ✭
    Thanks Geoff - working!
Sign In or Register to comment.