• Resolved alireza17

    (@alireza17)


    I am trying to use the quizi in a right to left language. When I apply the rtl to the quiz area, the quiz does not work well. Sometimes the first question disappears and by navigating to second question and going back I can see the questions, and sometimes none of the questions are visible, however I can navigate and go to the list.
    I tried several ways to apply the rtl and for all of them the plugin failed to work. The simplest way to test this behavior would be to add this line to your theme custom css:
    #content{ direction: rtl;}
    I really appreciate if you fix this bug or explain what can I do to avoid it.

    https://www.ads-software.com/extend/plugins/mtouch-quiz/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alireza17

    (@alireza17)

    I figured it out how to fix the problem. You need to make the following changes.
    1. In mtq_core_Change.min.css change

    .items div {
    	float:left;
    }

    to

    .items div {
    	float:right;
    }

    2. Change the two jQuery functions in the script.min.js from left to right:
    .animate({left: pos +'px'});
    to
    .animate({right: pos +'px'});
    and
    .css({left: pos +'px'});
    to
    .css({right: pos +'px'});
    3. And finally in show_quiz.php change the arrows entity numbers with each other (#8594 and #8592).

    Still it would be very nice to have the rtl option in the codes, so that it would automatically apply these changes to the plugin whenever the theme or content is from right to left.

    Plugin Author gmichaelguy

    (@gmichaelguy)

    Thanks for sharing your solution. I’m not sure an elegant way for me to incorporate this request at this time.

    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘rtl problem’ is closed to new replies.