Home › Forums › Calendar Products › Events Calendar PRO › Google Map and Map links
- This topic has 23 replies, 4 voices, and was last updated 7 years, 6 months ago by Stuart.
-
AuthorPosts
-
September 8, 2016 at 9:47 am #1161597StuartParticipant
This reply is private.
September 12, 2016 at 6:36 am #1162756StuartParticipantHi Nico,
Just checking in again to see if you have any further thoughts on this.
Thanks for all your help,
StuartSeptember 12, 2016 at 7:28 pm #1163159NicoMemberHey Stuart,
Sure, let’s continue to work on this:
1) The map seems to be appearing twice. How do I remove the larger one?
To remove the larger one, make sure the following line is deleted or commented in the functions.php file:
add_action ( 'tribe_events_after_the_meta', 'tribe_print_map_in_list_view' );
2) Can we remove the “View Full Map” link beneath the map and make the map itself a link to the map? Looks like this part of the code is controlling that in the functions.php file.
Unfortunately this is not possible as the map is actually an interactive element so wrapping it in a link won’t make it clickable. To remove the ‘view full map link’ remove or comment out this line:
echo 'ID ) . '">View full map';
Please let me know if the above help, and what else you need to have this done 🙂
Best,
NicoSeptember 13, 2016 at 9:16 am #1163383StuartParticipantHi Nico,
Well, I think we’ve made some progress. 🙂 The large Map is no gone. Yay!
Now, the small map seems to have wreaked havoc with the layout. 🙁
I think the size of the map is disrupting the layout. The map should have a horizontal orientation, but has a vertical orientation.
I’mm attaching a screen shot of the Avada Event List demo page. The map should fit inside the box that has the link to the Google Map. Otherwise it throws off the layout.
Do you know of a way to fix that?
Thanks,
StuartSeptember 14, 2016 at 5:37 pm #1164359NicoMemberThis reply is private.
September 15, 2016 at 10:37 am #1164720StuartParticipantHi Nico,
I think I’ve got this looking pretty much the way I want.
I added the following CSS:
div[id^="tribe-events-gmap-"] { height: 150px !important; } .fusion-tribe-events-venue-details-map { padding: 0 !important } .tribe-events-list .tribe-events-venue-details { font-style: italic; font-weight: 600; } .tribe-events-event-meta, body { font-size: 18px; }
Now, I’d like to know what’s controlling the fields for the date? I’d like to change that to a different format. Something like:
October 21
9:30 a.m.–1:00 p.m.So, that’s removing the “@” and putting the time on the second line.
Also, with the Location. I bumped up the size of the font mainly so the country would be on its own line. Is there another way to accomplish that?
Thanks for all your help!
StuartSeptember 19, 2016 at 12:29 pm #1166037NicoMemberAwesome Stuart, great job with the CSS 🙂
You can control the date time settings in ‘WP-Admin > Events > Settings > Display > Date Format Settings’, for example you could use ‘<br>’ as ‘Date time separator’ to move the time to a new line. This will affect the rest of the site, if this doesn’t work we can explore other options, but probably will have to replace how the date output in the template.
Regarding the country in the venue details, you can use this CSS snippet to make always show in a new line without increasing font size:
.tribe-country-name {
display:block;
}
You can do the same with other lines of the venue details if you want or also add some more specificity to the selector (by preprending .tribe-events-list) to narrow the effect of this rule just to list view.
Please let me know if those tips help you out,
Best,
NicoOctober 11, 2016 at 9:35 am #1174980Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Google Map and Map links’ is closed to new replies.