Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › RTL dirction
- This topic has 7 replies, 2 voices, and was last updated 9 years, 1 month ago by
Ernest Marcinko.
-
AuthorPosts
-
April 23, 2017 at 9:40 am #12805
hsn11
ParticipantHello,
How i change directions to RTL ?
Thanks
April 24, 2017 at 11:10 am #12826Ernest Marcinko
KeymasterHi!
Thank you very much for the proper details, it makes my work much easier.
The RTL direction should be automatical, but I see there is a conflict somewhere in the CSS. I’ve added the following custom CSS to the search options to fix that:
[html].searchsettings .asp_option {
flex-direction: row-reverse !important;
-webkit-flex-direction: row-reverse !important;
}.asp_content {
text-align: right !important;
}[/html]The results and the settings should appear now from the right to left.
April 25, 2017 at 6:40 am #12840hsn11
ParticipantThank you..
I have some new notes:
– The search settings (categories) now is not RTL ? How we can fix it?
– Can i make the main categories featured? and sub-categories under the main categories? In three columns .. and if its more it will be in a new line? can we do it?Thanks
April 25, 2017 at 2:19 pm #12859Ernest Marcinko
KeymasterHi,
Yes, it is possible to fix the direction and the indenting with the following custom CSS:
[html].asp_option .label {
text-align: right !important;
}.asp_option_cat_level-0 .label {
font-weight: bold !important;
}fieldset .asp_option_cat_level-1,
fieldset .asp_option_cat_level-1 {
margin-right: 12px !important;
margin-left: 0;
}fieldset .asp_option_cat_level-2,
fieldset .asp_option_cat_level-2 {
margin-right: 24px !important;
margin-left: 0;
}fieldset .asp_option_cat_level-3,
fieldset .asp_option_cat_level-3 {
margin-right: 36px !important;
margin-left: 0;
}[/html]It will look like this: http://i.imgur.com/JI7gZVp.png
Separating them into columns is however not possible, it only works for items within separate taxonomies. (tags, categories, product categories etc..)
April 26, 2017 at 6:56 am #12863hsn11
ParticipantThanks…
Can you please check the attached images ?
– Image number 2 i do it by photoshop .. its what i want to be .– How i can remove the scroll?
Thanks & Regards
-
This reply was modified 9 years, 1 month ago by
hsn11.
April 26, 2017 at 10:15 am #12874Ernest Marcinko
KeymasterHi!
Sorry, I have missed those 🙂
This should solve that as well:[html].searchsettings {
direction: rtl !important;
}.searchsettings legend {
text-align: right !important;
}[/html]The scrolling is automatically calculated, but if you change the Filter boxes height option to ‘auto’ then it will be disabled: http://i.imgur.com/4HIes9m.png
April 26, 2017 at 10:30 am #12876hsn11
ParticipantHi..
Pleas check attached image .. i think the error from this line:
[code].searchsettings {
direction: rtl !important;
}
[/code]I changed the Filter boxes height , but also somthing erorr … plz check the site http://mjared.net/
( the attached image is before change Filter boxes height)
Thanks
April 28, 2017 at 9:57 am #12902Ernest Marcinko
KeymasterHi,
Yes, that was the problematic line. I have logged in and made a different CSS rule, so it should be on the right side properly now.
-
This reply was modified 9 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.