Cognos Analytics

 View Only
Expand all | Collapse all

Trying to get rid of Watch video button

  • 1.  Trying to get rid of Watch video button

    IBM Champion
    Posted Thu June 09, 2022 05:55 AM
    Hi,

    I'm struggling to get rid of "Watch video" button.

    I've tried the solution proposed by @JEAM COELHO in Customizing the Cognos Analytics 11.2 home page, but I'm unable to succeed.

    Best regards,​

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Thu June 09, 2022 06:33 AM
    Are you specifically looking to hide only the Watch Video, or the entire videos section?

    You can hide the videos section by doing this: 
    .ca-home-getStartedTab .bx--col-md-8.bx--col-lg-8 {display:none !important}



    This would hide just the link:
    .ca-home-getStartedTab .bx--col-md-8.bx--col-lg-8 a {display:none !important}



    ------------------------------
    Paul Mendelson
    ------------------------------



  • 3.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Thu June 09, 2022 08:53 AM
    Hi Paul,

    Wonderful, it looks like what I'm looking for.
    I'm trying to do this with an extension.

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 4.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Thu June 09, 2022 11:45 AM
      |   view attached
    Hi,

    Thanks to Jeam, here is the working solution (tested with v11.2.1). Again, all credits are for Jeam with this extension.

    If you are wondering about the login structure in the spec.json file, read the following article:
    https://www.ibm.com/support/pages/441-error-when-uploading-theme-and-also-login-extension-calls-css-file-upon-login#:~:text=The%20441%20unauthorized%20error%20occurs,request%2C%20the%20response%20is%20441

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------

    Attachment(s)

    zip
    Theme_CSS.zip   801 B 1 version


  • 5.  RE: Trying to get rid of Watch video button
    Best Answer

    Posted Thu June 09, 2022 05:52 PM
    Hi Patrick!

    Just reproducing the message I sent to you, to make public:

    ----

    To be clear, follow theses steps:

    Create a spec.json with this code:

    {
      "name":"Theme_CSS",
      "schemaVersion": "2.0",
      "extensions": [
      {
        "perspective": "home",
        "features": [{
          "id": "ca.home.perspective.theme.css",
    	  "cssStyles": ["v1/ext/Theme_CSS/login/css/style.css"]
        }]
      }
      ]
    }​


    Create folder structure /login/css, in root folder (where spec.json is located)

    In folder login/css, create a style.css file and put this code:

    div.ca-home-welcomeBanner-buttonsGroup , div.ca-home-welcomeBanner-closeButton{
        display:none !important;
    }
    
    div.ca-home-welcomeBanner {
      background-image: none !important;
      background-image: linear-gradient(to bottom right, rgb(0, 54, 65), rgba(149, 207, 220, 0.5) ) !important;
      height: 240px !important;
    }
    
    table.bx--data-table.bx--data-table--no-border.bx--data-table--sticky-header {
        max-height: 2000px !important;
        padding-bottom: 25px !important;
    }
    
    a.commonMenuLink img {
        height: 18px !important;
        width: 18px !important;
        opacity: .8 !important;
    }
    

    This code has some customization for my environment. But, the most important part to hide watch button is

    div.ca-home-welcomeBanner-buttonsGroup , div.ca-home-welcomeBanner-closeButton{
    display:none !important;
    }

    Then, zip the folder where you create this customization and upload to Cognos at Manage > Customization > Extensions.

    For your knowledge, I've create login/css structure because of this issue that sometimes can happen: 

    https://www.ibm.com/support/pages/441-error-when-uploading-theme-and-also-login-extension-calls-css-file-upon-login#:~:text=The%20441%20unauthorized%20error%20occurs,request%2C%20the%20response%20is%20441



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------



  • 6.  RE: Trying to get rid of Watch video button

    Posted Tue September 13, 2022 03:42 PM
    Hi Jeam, 

    Thanks for sharing the information regarding Welcome Banner customization, I am able to change the background color using the code but can you please suggest how to change forground color for "welcomeBannerTitle". I need to have white background that's why need to change "welcomeBannerTitle" color to black.

    ------------------------------
    Seema Dalal
    ------------------------------



  • 7.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Wed September 14, 2022 04:39 AM
    Hi Seema,

    In the previous .css file (from Jeam), you might try to add this line:
    .ca-home-welcomeBanner {background-color: WHITE !important;}​

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 8.  RE: Trying to get rid of Watch video button

    Posted Wed September 14, 2022 03:27 PM
    Thanks Patrick,

    I was able to set black background color for banner, I need to set foreground color as Black. Do you know how to do that?

    Thanks,
    Seema Dalal

    ------------------------------
    Seema Dalal
    ------------------------------



  • 9.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Thu September 15, 2022 03:14 AM
    Hi Seema,

    I think it is the following css:
    .ca-home-welcomeBanner-brandText {color: black !important;}
    .ca-home-welcomeBanner-greetingLabel {color: black !important;}
    .ca-home-welcomeBanner-greetingDescription {color: black !important;}
    ​

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 10.  RE: Trying to get rid of Watch video button

    Posted Mon September 26, 2022 02:20 PM
    Thanks Patrick,

    Can you please also let me know how to change hamburger menu navigation bar color , I need to change it from black to grey.



    ------------------------------
    Seema Dalal
    ------------------------------



  • 11.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Tue September 27, 2022 04:01 AM
    Hi Seema,

    From Manage / Customization and Themes, change from "IBM Carbon X" to "IBM Classic".


    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 12.  RE: Trying to get rid of Watch video button

    Posted Mon January 09, 2023 10:45 AM
    Patrick,

    Have you come across any way to customize the watch video rather than get rid of it other than to create a whole custom welcome page which then means you have to create your own tab interface. I don't want to even attempt to do that.

    ------------------------------
    Robert Hofstetter
    ------------------------------



  • 13.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Mon January 09, 2023 11:18 AM
    Hi Robert,

    I believe I've read somewhere (in this community) that you cannot easily change the default video to another video of your choice.

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 14.  RE: Trying to get rid of Watch video button

    Posted Mon January 09, 2023 05:20 PM
    I was afraid of that. Maybe a better option would be to hide that button then and put the custom option under the hamburger menu.

    ------------------------------
    Robert Hofstetter
    ------------------------------