Home › Forums › Calendar Products › Events Calendar PRO › CSS styles for right to left( Arabic) sites
- This topic has 14 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 6, 2013 at 8:28 am #53619
elmalak
ParticipantCongratulations on the release of the new Events Calendar 3.0
I am using mine on an Arabic site and to get it to look nice I had to change some css styles to be suitable for Arabic( right to left sites).
Hope they prove useful for other users.
Mamdouh/* Events Calendar Styles in Arabic*/
.tribe-events-event-meta .tribe-events-meta-group, .tribe-events-event-meta .column, .tribe-bar-submit, .tribe-bar-search-filter, .tribe-bar-date-filter, #tribe-events-header .tribe-events-sub-nav li, #tribe-events-footer .tribe-events-sub-nav .tribe-events-nav-previous {
float: right; text-align: right;
}
#tribe-events-header .tribe-events-sub-nav .tribe-events-nav-next, #tribe-events-footer .tribe-events-sub-nav .tribe-events-nav-next {
float: left;
margin-right: 5px;
text-align: left;
}.datepicker td span{
float: right;
}For these styles to work, you have you set up a stylesheet override by creating a file called tribe-events.css and placing it in YOUR_THEME/tribe-events/ (see our themer’s guide for complete details)?
Thanks to @barry for this tip!July 8, 2013 at 12:14 pm #53854Jonah
ParticipantThanks for sharing this Mamdouh! I’m sure it will help others.
July 8, 2013 at 12:32 pm #53864elmalak
ParticipantYou’re welcome Jonah!
I know a lot of users suffer with this point and wanted to make it easier for them to use the plugin in Arabic sites.Keep up the good work.
MamdouhJuly 9, 2013 at 11:56 am #54075Leah
MemberThank you Mamdouh!
July 25, 2013 at 12:44 pm #57174elmalak
ParticipantHi,
A quick update;
after updating to v. 3.0.2 my Arabic styles are all getting overwritten by the plugin’ own styles and everything is back to the left to right alignment again.Do I need to manually edit the plugin’s own css file for this to work or what?
I usually add my style to the theme’s css file.Thanks,
MamdouhJuly 25, 2013 at 2:15 pm #57208Jonah
ParticipantHi Mamdouh,
Adding the styles to your theme’s CSS should be fine as long as they’re specific enough. You’ll need to look at how things are being overwritten to know how or what you need to make more specific. For more info: http://css-tricks.com/specifics-on-css-specificity/
I hope that helps but let me know if you have any other questions.
– Jonah
July 26, 2013 at 2:59 am #57285elmalak
ParticipantHi Jonah,
I understand what you’re saying, but the point is those rule worked just fine in version 3.0 however, after updating to 3.0.1 or 3.0.2 they are no more working, so did anything change in these versions in how the css is getting called?I am using the exact same rules but the ones with the plugin take precedence over mine right now which wasn’t the case at first, so am I missing something?
July 26, 2013 at 10:34 am #57352Jonah
ParticipantHi Mamdouh,
Had you added the CSS to your themes style.css file or somewhere else?
– Jonah
July 26, 2013 at 10:39 am #57354elmalak
ParticipantYes, that’s it, at the end of my theme’s style.css file.
July 26, 2013 at 12:42 pm #57371Jonah
ParticipantHi Mamdouh,
Do you have some specific examples you can point us to so I can see where and why the CSS is not being applied?
Thanks,
JonahJuly 26, 2013 at 12:52 pm #57376elmalak
ParticipantIf you look at this page for June 2013,
http://www.eps-assiut.com/events/2013-06/.tribe-bar-date-filter is shown as float: left; whereas I’ve used a float: right; in the style.css file and same thing applies for all the css rules I’ve shared at the top of this post.
All my styles above are there but overwritten by the plugin’s own styles.
July 29, 2013 at 4:02 pm #57659Barry
MemberHi Mamdouh,
Sadly Jonah has departed for pastures new – but I’ll be happy to try and help if I can in his stead.
Have you set up a stylesheet override by creating a file called tribe-events.css and placing it in YOUR_THEME/tribe-events/ (see our themer’s guide for complete details)?
I didn’t see that in place when I visited your site – but it might offer a better way to enforce your own rules.
July 30, 2013 at 4:01 am #57726elmalak
ParticipantHi Barry,
Thank you for pointing out this method, I wasn’t aware of it.
I just tired it and now my styles are working properly.Many thanks,
MamdouhJuly 30, 2013 at 6:22 am #57732Barry
MemberExcellent, in that case I’ll close this thread – if there is anything else please don’t hesitate to create new threads and one of the team will be happy to help 🙂
July 7, 2015 at 6:27 am #980000Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘CSS styles for right to left( Arabic) sites’ is closed to new replies.
