WordPress.org

Ready to get started?Download WordPress

Forums

Arras theme - LTR where supposed to be RTL (3 posts)

  1. Tim Rogers
    Member
    Posted 2 years ago #

    New to WordPress and I need some help.

    I am using the latest version of the Arras theme, and the latest version of WordPress.

    The problem is this:
    My website is right to left, I told Arras to use the RTL CSS file and most things worked well. The only problem I had was that for some reason, the comment content list is displayed from left to right.

    Tried many things, but nothing really worked. Looking at the code using inspect element, I can see that a "text-direction: ltr;" is being added right below the 'comment-content' div. It looks like this:

    <ol id="commentlist" class="clearfix">
                    <li class="comment even thread-even depth-1" id="li-comment-1">
            <div class="comment-node" id="comment-1">
                <div class="comment-controls">
                <a class="comment-reply-link" href="/wordpress/?p=1&replytocom=1#respond" onclick="return addComment.moveForm(&quot;comment-1&quot;, &quot;1&quot;, &quot;respond&quot;, &quot;1&quot;)">להגיב</a>            </div>
                <div class="comment-author vcard">
                <img alt="" src="http://0.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=32" class="avatar avatar-32 photo avatar-default" height="32" width="32">            <cite class="fn"><a href="http://he.wordpress.org/" rel="external nofollow" class="url">commenter</a></cite>
                </div>
                            <div class="comment-meta commentmetadata">
                    Posted:<abbr class="comment-datetime" title="2011-05-19T19:31:12+00:00">May 19, 2011 at 19:31</abbr>            </div>
                <div class="comment-content"><div style="direction: ltr;">
    <p>comment</p>
    </div>
    </div>
            </div>
    </li>
            </ol>

    (image: http://i54.tinypic.com/1z1qzrs.jpg )

    As you can see, there is another div, making the whole thing LTR right before the comment itself. I did not edit it, and nowhere can I find the code leading to this - not in the CSS files, nor in the theme itself. This has never happened to me with any other
    theme. Anyone has an idea?
    Thanks!

    By the way, the site is currently on a local virtual server, so I can't really link to it.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    you could try to force the rtl with:

    .comment-content div { direction: rtl!important; }

    do you have any plugins activated that might influence the comments output?

  3. Tim Rogers
    Member
    Posted 2 years ago #

    Ok, that worked. Thanks!

    do you have any plugins activated that might influence the comments output?

    No! And that what bugs me... this is a clean WordPress install, no plugins added. Only this theme. Weird, isn't it?

    Any idea why would WordPress throw that CSS style there?

Topic Closed

This topic has been closed to new replies.

About this Topic