Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author srumery

    (@srumery)

    Hi Jahrl,

    Thank you for your question. You could achieve displaying the tab just on the homepage with a little CSS. Is that something you are comfortable with?

    Adding a field for the page IDs is something we considered, but in the spirit of keeping this plugin simple, it is not something that we have lined up for future releases. Very few people who have asked for it and the ones that do, are able to write the custom CSS in order to get what they need.

    I like the option to hide the tab on mobile devices. That would be a nice and simple feature. I have added this to our future release list.

    Plugin Author srumery

    (@srumery)

    I have created a GitHub issue for the mobile request. I like that one and think it should be added to the future feature list. Please reference it here:

    https://github.com/rumspeed/simple-side-tab/issues/11

    Also, with CSS you can hide the tab on all pages, then just below that code, you can enable it referencing the “home” CSS class that WordPress writes to the body tag on the homepage (startpage).

    Do you need help writing this CSS code?

    Plugin Author srumery

    (@srumery)

    Hi Jahrl,

    I recently added a filter to the plugin so you can conditionally turn off the tab. This will turn it off on all pages, except the homepage (instead of using CSS). Add this to your theme functions.php file:

    // filter the tab display value to conditionally turn off the tab
    function rum_filter_simple_side_tab_display( $display ) {
    
        if ( ! is_front_page() ) {
    
            $display = false;
        }
    
        return $display;
    }
    add_filter( 'rum_sst_plugin_display_tab', 'rum_filter_simple_side_tab_display', 10 , 1 );

    I hope this helps. Please let me know if there is anything else you need.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Like to only show the tab on the startpage’ is closed to new replies.