Forum Replies Created
-
AuthorPosts
-
snortonParticipant
I’ve figured it out and it was just an oversight on my behalf. edit_posts. That is the capability to enable in order to allow users to add tags to any post_type.
snortonParticipantYou guys can call each specific meta item individually that you would like to display in your template override. Check out the tribe_get_ series of tags you can use in your template with the ECP docs.
http://docs.tri.be/Events-Calendar/Then you can just use whatever HTML you want.
example:<?php $venue = tribe_get_venue(); if(!empty($venue)) { echo '<h4>Venue</h4>' . $venue . '<hr />'; } ?>
January 10, 2014 at 10:50 am in reply to: photo overview 1 column instead of 3 and other lay-out issues #90206snortonParticipantNeill/Klara,
I think the solution Neill proposed with the [raw][/raw] shortcode will actually remedy your problem, Klara, but you stated in an earlier reply (LINK) that you added it one event page. You should actually use this approach by adding it to this page (http://[your URL]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=display).
Place the [raw] code in the ‘Add HTML before event content’ box in the Advanced Template Settings section on this page and use [/raw] in the ‘Add HTML after event content’ box and see if that gives you better results than doing it on an individual event page.snortonParticipantphatwp – you’ll want to edit the template for Single Events, or otherwise hook into the organizer meta.
The tag for the organizer email is: tribe_get_organizer_email
If you use the plugin you’ve linked to and create a template override, use the following where you want the organizer’s email to appear, obfuscated of course:
$emailaddress = tribe_get_organizer_email; echo eeb_email($emailaddress, 'Send a message');
or ` $emailaddress = tribe_get_organizer_email;
echo do_shortcode(‘[eeb_email email=”‘ . $emailaddress . ‘” display=”Send a message”]’)`There are many other ways for obfuscation, including simply using a contact form in place of listing the email address.
January 7, 2014 at 12:11 pm in reply to: list view: is it possible to hide/limit the page content from list view? #87907snortonParticipantChild themes are the ideal solution to effectively customizing a parent theme without fear of losing/overwriting your changes when updating the parent theme. However, in this particular situation you have a couple of options considering this is simple CSS.
First of all, you can refer to WordPress’ Child Theme Documentation to build one. It’s a really straightforward process.
However, in this case you can add the CSS directly to your Events Calendar through the Settings page found here:
[your url]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=display#tribe-field-tribeEventsBeforeHTMLAdd this to the “Add HTML before event content” box:
<style type="text/css"> .delimiter { width: auto; // Fix Issue 1 margin: 20px auto; height: 2px; float: none; // Fix Issue 2 </style>
… and make sure you save your changes.
This will change the style applied to the delimiter class on pages with Events Calendar templates. If it doesn’t, add !important (i.e.
float: none !important;
) to override and fix your issue.
FYI: it’s not good practice to use !important if you can avoid it 🙂snortonParticipantI see what you’re saying. I, too, did not care for the default style on the Events List widget so I created a template override which essentially replicated the Calendar widget (but without the calendar). It’s really simple to do.
Just create a directory called “widgets” in [your theme]/tribe-events and copy the list-widget.php file from /wp-content/plugins/events-calendar-pro/views/pro/widgets. From here you can modify the template to meet your needs. To see how the list is structured under the mini calendar, open \wp-content\plugins\events-calendar-pro\views\pro\widgets\mini-calendar\single-event.phpJanuary 6, 2014 at 7:37 am in reply to: list view: is it possible to hide/limit the page content from list view? #87366snortonParticipantAlso, FWIW, as a suggestion, instead of applying that dotted line as a background image, you could just give use
h4.widget-title {bottom-border: 1px dotted #c0c0c0; padding-bottom: 1em;}
in your stylesheet.January 6, 2014 at 7:31 am in reply to: list view: is it possible to hide/limit the page content from list view? #87360snortonParticipant@chrisfernie, I presume your issue is specific to CSS and the attributes you’ve written for the delimiter class.
Check it out:.delimiter { width: 100%; <--- Here's issue number 1 margin: 20px auto; height: 2px; float: left; <--- issue number 2 background: url(../images/delimiter.bg.x.png) repeat-x 0 0; }
I see that you’re using .delimiter in other locations on your site, such as in the sidebar, so if you adjust your specificity on the style then you should be able to effective eliminate the problem you’re seeing.
snortonParticipantRein, so you don’t have to wait too long for the good folks here to reply to this post, did you know that there is an Events List widget which you can filter by category if you’d like, or limit the number of events listed?
snortonParticipantrather that would be:
<div class=”<?php echo implode(‘ ‘,tribe_get_event_cat_slugs()); ?>”>snortonParticipantThe following will output all category slugs assigned to specific event separated by a space (when wrapped in php tags).
`implode(‘ ‘,tribe_get_event_cat_slugs()); `
So, if your slugs were “8th-grade” and “math” then you could do:
<div class=”<?php implode(‘ ‘,tribe_get_event_cat_slugs()); ?>” >snortonParticipantThat is actually determined through your wordpress settings:
[yoursite]/wp-admin/options-general.phpsnortonParticipantIf you want to hand-craft the content in the hover, simply write an excerpt my friend.
On the Edit Event page, check your screen options to make sure that the Excerpt option is not hidden and then have at it. ECP will respect the authority of the Excerpt. 😉Cheers!
snortonParticipanttry this:
echo tribe_get_start_date($post, false, $format= ‘D. M j’)snortonParticipantIf you want to hand-craft the content in the hover, simply write an excerpt my friend.
On the Edit Event page, check your screen options to make sure that the Excerpt option is not hidden and then have at it. ECP will respect the authority of the Excerpt.
(That’s a built-in WordPress function: http://codex.wordpress.org/Excerpt) -
AuthorPosts