Home › Forums › Calendar Products › Events Calendar PRO › Events in loop to Avada Grid Layout
- This topic has 6 replies, 2 voices, and was last updated 11 years, 7 months ago by
Barry.
-
AuthorPosts
-
June 6, 2014 at 3:02 am #208548
pylon
ParticipantClient likes idea of “Include events in main blog loop” for their site. Site uses Avada theme and they have the ‘timeline’ layout for the main blog page, which is two column layout. Unfortunately the events are spanning the 2 columns. I assume I need to modify the css for these layouts. Could you point me in the right direction as to the file that need addressing for desktop and mobile. If you want to provide example css that would be even better!
Need to visit http://www.etal.org.uk/clientview first before visiting http://www.etal.org.uk/blog to see the issue.
June 6, 2014 at 4:51 pm #210208Barry
MemberHi!
I’d love to take a peek – but for whatever reason if I visit …/clientview and then navigate to …/blog I still see the same “Website on its way” page. Can you confirm the steps required to see this?
Thanks!
June 9, 2014 at 4:39 am #214482pylon
ParticipantCan you try visiting http://www.etal.org.uk/clientview again, then kill any trailing address afterhttp://www.etal.org.uk/clientview and refresh that?
June 9, 2014 at 1:49 pm #215432Barry
MemberOK, so your theme is assuming that all of the items on that timeline are posts and so is targeting them with rules like this one:
.timeline-layout .post.align-left{width:300px;float:left;clear:left;}Events are not blog posts though and so the posts class is not applicable. To workaround this, you would either need to add matching rules such as:
.timeline-layout .tribe-events.align-left{width:300px;float:left;clear:left;}For each of the timeline layout rules, or else take steps to also add the post class to all events in the timeline, or, change the rule so it isn’t so specific.
I hope that helps!
June 11, 2014 at 8:30 am #218861pylon
ParticipantThat sounds closer!
How would I add the ‘post’ class to all events in the timeline? Would i need to add a custom field or add in functions.php?
June 11, 2014 at 5:20 pm #219698Barry
MemberWordPress has a post_class filter you can leverage for this sort of purpose:
http://codex.wordpress.org/Function_Reference/post_class
So that’s one avenue, or you could modify the relevant template and code it in there.
I hope that helps 🙂
September 4, 2014 at 7:51 pm #723264Barry
MemberHi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!
-
AuthorPosts
- The topic ‘Events in loop to Avada Grid Layout’ is closed to new replies.
