WordPress.org

Support

Support » Plugins and Hacks » [Resolved] problem and fix for the tab on right side

[Resolved] problem and fix for the tab on right side

  • J. Shi
    Member

    @grabimo

    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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] problem and fix for the tab on right side’ is closed to new replies.