snorton

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 96 total)
  • Author
    Posts
  • in reply to: Edit post_tags? #91307
    snorton
    Participant

    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.

    in reply to: single-event template overide #90226
    snorton
    Participant

    You 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 />';
    }
    
    ?>
    in reply to: photo overview 1 column instead of 3 and other lay-out issues #90206
    snorton
    Participant

    Neill/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.

    in reply to: Obfuscate email addresses ? #89401
    snorton
    Participant

    phatwp – 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.

    snorton
    Participant

    Child 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-tribeEventsBeforeHTML

    Add 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 🙂

    in reply to: Calendar Widget #87392
    snorton
    Participant

    I 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.php

    snorton
    Participant

    Also, 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.

    snorton
    Participant

    @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.

    in reply to: Calendar Widget #87356
    snorton
    Participant

    Rein, 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?

    in reply to: tribe_get_event_cat_slugs displays "Array" #81441
    snorton
    Participant

    rather that would be:
    <div class=”<?php echo implode(‘ ‘,tribe_get_event_cat_slugs()); ?>”>

    in reply to: tribe_get_event_cat_slugs displays "Array" #81440
    snorton
    Participant

    The 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()); ?>” >

    in reply to: Week Begins On Monday – #77864
    snorton
    Participant

    That is actually determined through your wordpress settings:
    [yoursite]/wp-admin/options-general.php

    in reply to: Limit Calendar Preview Word Count #77705
    snorton
    Participant

    If 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!

    in reply to: Start date for each recurring event. #77702
    snorton
    Participant

    try this:
    echo tribe_get_start_date($post, false, $format= ‘D. M j’)

    in reply to: Limit Calendar Preview Word Count #77695
    snorton
    Participant

    If 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)

Viewing 15 posts - 31 through 45 (of 96 total)