Dashboards & Visualizations

Remove some options from splunk default time

karthi25
Path Finder

I want to remove Date Range and Date & Time Range options from the time selection box. I have tried using

div[id^='daterange_view']
 div[id^='dateandtimerange_view']
  {
     display: none;
 }

I have highlighted the part I want to remove:
alt text
but no use on it.
Can anyone please help me to do it.

0 Karma
1 Solution

niketn
Legend

@karthi25, try the following CSS Override.

  <html depends="$alwaysHideCSS$">
    <panel>
      <style>
        div[id^="daterange_view"],div[id^="dateandtimerange_view"]{
          visibility:hidden !important;
        }
      </style>
    </panel>
  </html>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@karthi25, try the following CSS Override.

  <html depends="$alwaysHideCSS$">
    <panel>
      <style>
        div[id^="daterange_view"],div[id^="dateandtimerange_view"]{
          visibility:hidden !important;
        }
      </style>
    </panel>
  </html>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

niketn
Legend

Adding one more setting to reduce the height of time picker dialog:

        .shared-timerangepicker-dialog {
            height: 300px !important;
        }
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...