googono
Forum Replies Created
-
I worked!
Thank you very much.
For some reason, just changing the HTML code in the child theme’s content.php file was enough. The other additions to the style.css file didn’t influence anything.
I will try to work on recognizing the language and ask here if I will get stuck again. Thanks again!
OK, thank you, I understand that now I first need to find out the language and then change the direction.
As a first step toward this goal, I want to do something much simpler – just change the direction for all posts (even english ones) – as I still don’t understand how to do it. After solving it, I will add the code that tries to indentify the language based on the first letter as you suggested.
So I understand that this code:
h2.entry-title.rtl { direction: rtl; }
should be added to the styles.css file.I still don’t understand where to add the HTML part. What I understand from you is that somewhere there is a code:
<h2 class="entry-title">
and that I should add to this codertl
aftertitle
and before the end of the quotation mark. But I don’t understand where this line is in the first place.I have gone through almost all of the PHP files of the parent theme and I couldn’t find any code about h2/entry title (I found something about h1/page-title but I assume it is different). You said it’s in the template, but I went to the Templates from the dashboard and apparently I have no templates (so I understand it is something different). So my question is: where is the template code that has the
<h2 class="entry-title">
part, so I could add your suggestedrtl
?Thanks ahead.
A question about it.
I created a new child theme and now it has two files: functions.php and style.css.
I have tried adding the lines you suggested to the style.css file<h2 class=”entry-title rtl”>
h2.entry-title.rtl { direction: rtl; }But nothings changed. Did I add it to the correct place?
Hi,
I have tried using some “multi language” plugins and they didn’t help. I tried using Polylang for example.
I want to clarify – I don’t want to translate any portion of my site. I want all the menus / site header / ect. be in English always. All I want is that if someone chose to write a post title in Hebrew – then it will be dislpayed with the correct text direction.
In addition, I didn’t mean that the website should look different for English-users and for RTL-users. It should look the same for both. A user might one day decide to write in English, and the next day in a RTL-language. And it should be able to present both with the correct text direction according to the chosen language.
Thanks ahead.
- This reply was modified 4 years, 3 months ago by googono.