WordPress.org

Forums

Simple Side Tab
problem and fix for the tab on right side (3 posts)

  1. J. Shi
    Member
    Posted 1 year ago #

    We reused the php code of this plugin and found a problem. If you want to put the tab on the right-hand side with long or shot tab text, there is either gap or the tab might be (partially) invisible. The root cause is that the CSS property "right" is fixed at 156px within this plugin. It should be adaptive to text length. Our fix is as follows in the simple_side_tab.php. We try to use native Javascript code. But you simply can tweak it with the jQuery style.

    <script type="text/javascript">
    jQuery(document).ready(function() {
    var sideTab = document.getElementById("rum_sst_tab");
    if ((sideTab .className).indexOf("rum_sst_right") >= 0) {
    sideTab .style.right = -1.0 * sideTab .offsetWidth + "px";
    }
    });
    </script>

    For details, you may download our plugin at https://wordpress.org/plugins/feedback-side-tab/ and check out feedback-side-tab.php

    https://wordpress.org/plugins/simple-side-tab/

  2. stephgordon445
    Member
    Posted 4 months ago #

    where do you put this fix? I cant find simple_side_tab.php.

    I need this on the right side

  3. srumery
    Member
    Plugin Author

    Posted 4 months ago #

    I re-opened this support thread and will look into the issue. I have added a link to this on our github repo for this plugin and added an issue here.

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

    We will address this and push up a fix for this in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Side Tab
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic