Jump to content

How to change float right for sub-category in rtl-lang


Recommended Posts

Hello,


I want to help me with the direction of the subcategories left to right for LTR mode and right to left for RTL mode.

For example, there are three subcategories here:
http://sc2scoopsat.universe.wf/fr/90-sans-gluten-et-diete

Capture.thumb.png.97068474de8051a0e052523557d2c80d.png

And here there is a carousel for the parish categories because there are more than 6 sub-categories:

http://sc2scoopsat.universe.wf/fr/92-epicerie-alimentation

Capture2.thumb.PNG.8c4c0c680fd21e7deb25e52520695c15.PNG

 

How to make subcategories appear from right to left in .lang-rtl . mode 

http://sc2scoopsat.universe.wf/ar/90--

http://sc2scoopsat.universe.wf/ar/92--

 

I tried changing the float with the following code:


 

.lang-rtl .wt_subcategory .owl-carousel .owl-stage {
     float: right;
}

 

Only works with subcategories containing 5 or fewer subcategories

Capture3.thumb.png.3048a291cc1c5e27517bb41f595869ed.png
 

Categories that fill the page when there are 6 disappear in RTL mode

Capture4.thumb.png.cdba4952e7b974fe1c77d9b5db1df670.png

 

Thank you so much

Link to comment
Share on other sites

I think it is better to fix this when creating the owl carousel object. 

I tried this https://stackoverflow.com/questions/46722725/owlcarousel-2-change-settings-after-init

But did not work. I recommend you to find a way to do this with owl object and not mess with the css because it is a library and has options to do so. If you change css you might change some thing in other parts of the website and you are not aware of them

  • Confused 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...