So my question is: where is the template code that has the part, so I could add your suggested rtl ? 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). 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). ![]() But I don’t understand where this line is in the first place. What I understand from you is that somewhere there is a code: and that I should add to this code rtl after title and before the end of the quotation mark. I still don’t understand where to add the HTML part. So I understand that this code: h2.entry-title.rtl should be added to the styles.css file. After solving it, I will add the code that tries to indentify the language based on the first letter as you suggested. OK, thank you, I understand that now I first need to find out the language and then change the direction.Īs 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. I have some coding experience and I am positive I can figure it out with some guidance if more advance coding is needed. ![]() I have also tried to create a child theme and apply stuff I found over the internet (not really knowing what I am doing) but so far to no success. i can’t find a way to change the text direction – even retroactively after the post was written. Now, if a user chose the post body text to be LTR it will be presented as LTR and if he chose RTL it will be presented as RTL which is a good result for me.īut I don’t seem to get the same results for the post title. I have installed a theme called Emmet-Lite. And if the post is in English, I want the text direction to be LTR. That means that in case the post is in the RTL language – I want the text direction to be RTL. I am trying to build a website in which users can post both in english and in a RTL language (Hebrew) – depending on their preference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |