WordPress.org

Ready to get started?Download WordPress

Forums

Simple Side Tab
[resolved] problem and fix for the tab on right side (1 post)

  1. J. Shi
    Member
    Posted 10 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic