Nancy

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • in reply to: Missing Find Events button in search bar #1371615
    Nancy
    Participant

    Hi Jennifer,
    You called it! That’s exactly what’s going on. I took out that css and the
    Find Events button came back. But. . . so did the + Export Events at the
    bottom of the page, and that’s what I was trying to hide with the CSS. I
    corrected my css, and everything looks great. Thanks so much for your help.
    I really appreciate your fresh set of eyes!

    Much Appreciated,
    Nancy

    Youbydesignwebsites.com

    Everyone has a story.
    We can help you tell yours.

    in reply to: Missing Find Events button in search bar #1370633
    Nancy
    Participant

    This reply is private.

    in reply to: Hiding next and Previous Events when on the details Page #1369917
    Nancy
    Participant

    Hey Geof,
    Great news, I was able to hide the element using css. I’d rather use css anyway, so I think we’re good on this issue.

    thank you!
    Nancy`

    .tribe-events-sub-nav .tribe-events-nav-previous {
    display: none !important;
    }

    .tribe-events-nav-next {
    display: none !important;
    }

    in reply to: Hiding next and Previous Events when on the details Page #1369911
    Nancy
    Participant

    Hey Geoff,
    I entered the script in the child theme, and it produced a 500 error.

    Here is what is currently in the child .php sheet:

    <?php

    // =============================================================================
    // FUNCTIONS.PHP
    // —————————————————————————–
    // Overwrite or add your own custom functions to Pro in this file.
    // =============================================================================

    // =============================================================================
    // TABLE OF CONTENTS
    // —————————————————————————–
    // 01. Enqueue Parent Stylesheet
    // 02. Additional Functions
    // =============================================================================

    // Enqueue Parent Stylesheet
    // =============================================================================

    add_filter( ‘x_enqueue_parent_stylesheet’, ‘__return_true’ );

    // Additional Functions
    // =============================================================================

    function tribe_alter_event_archive_titles ( $original_recipe_title, $depth ) {
    // Modify the titles here
    // Some of these include %1$s and %2$s, these will be replaced with relevant dates
    $title_upcoming = ‘Upcoming Events at Saint James’; // List View: Upcoming events
    $title_past = ‘Past Events’; // List view: Past events
    $title_range = ‘Events for %1$s – %2$s’; // List view: range of dates being viewed
    $title_month = ‘Saint James Events for %1$s’; // Month View, %1$s = the name of the month
    $title_day = ‘Events for %1$s’; // Day View, %1$s = the day
    $title_all = ‘All events for %s’; // showing all recurrences of an event, %s = event title
    $title_week = ‘Events for week of %s’; // Week view
    // Don’t modify anything below this unless you know what it does
    global $wp_query;
    $tribe_ecp = Tribe__Events__Main::instance();
    $date_format = apply_filters( ‘tribe_events_pro_page_title_date_format’, tribe_get_date_format( true ) );
    // Default Title
    $title = $title_upcoming;
    // If there’s a date selected in the tribe bar, show the date range of the currently showing events
    if ( isset( $_REQUEST[‘tribe-bar-date’] ) && $wp_query->have_posts() ) {
    if ( $wp_query->get( ‘paged’ ) > 1 ) {
    // if we’re on page 1, show the selected tribe-bar-date as the first date in the range
    $first_event_date = tribe_get_start_date( $wp_query->posts[0], false );
    } else {
    //otherwise show the start date of the first event in the results
    $first_event_date = tribe_event_format_date( $_REQUEST[‘tribe-bar-date’], false );
    }
    $last_event_date = tribe_get_end_date( $wp_query->posts[ count( $wp_query->posts ) – 1 ], false );
    $title = sprintf( $title_range, $first_event_date, $last_event_date );
    } elseif ( tribe_is_past() ) {
    $title = $title_past;
    }
    // Month view title
    if ( tribe_is_month() ) {
    $title = sprintf(
    $title_month,
    date_i18n( tribe_get_option( ‘monthAndYearFormat’, ‘F Y’ ), strtotime( tribe_get_month_view_date() ) )
    );
    }
    // Day view title
    if ( tribe_is_day() ) {
    $title = sprintf(
    $title_day,
    date_i18n( tribe_get_date_format( true ), strtotime( $wp_query->get( ‘start_date’ ) ) )
    );
    }
    // All recurrences of an event
    if ( function_exists(‘tribe_is_showing_all’) && tribe_is_showing_all() ) {
    $title = sprintf( $title_all, get_the_title() );
    }
    // Week view title
    if ( function_exists(‘tribe_is_week’) && tribe_is_week() ) {
    $title = sprintf(
    $title_week,
    date_i18n( $date_format, strtotime( tribe_get_first_week_day( $wp_query->get( ‘start_date’ ) ) ) )
    );
    }
    if ( is_tax( $tribe_ecp->get_event_taxonomy() ) && $depth ) {
    $cat = get_queried_object();
    $title = ‘‘ . $title . ‘‘;
    $title .= ‘ › ‘ . $cat->name;
    }
    return $title;
    }
    add_filter( ‘tribe_get_events_title’, ‘tribe_alter_event_archive_titles’, 11, 2 );

    /*
    * Recurring events in wp-admin: only display first (parent) occurrence in list of Events
    * (i.e. hide child recurring events)
    *
    * From https://theeventscalendar.com/knowledgebase/hide-recurring-event-instances-in-admin/
    * – https://gist.github.com/cliffordp/81f23a207ab483c9e7c6d910f9b29c0a
    * 2016-07-04 Barry shared this snippet from a previous customer’s own/shared customization
    *
    */
    class Events_Admin_List__Remove_Child_Events {
    public function __construct() {
    // Don’t kick in unless we’re on the edit.php screen
    add_action( ‘load-edit.php’, array( $this, ‘setup’ ) );
    }
    public function setup() {
    // Listen out for the main events query
    if ( ‘tribe_events’ === $GLOBALS[ ‘typenow’ ] )
    add_action( ‘parse_query’, array( $this, ‘modify’ ) );
    }
    function modify( WP_Query $query ) {
    // Run once, only for the main query
    if ( ! $query->is_main_query() ) return;
    remove_action( ‘parse_query’, array( $this, ‘modify’) );
    // Only return top level posts as a means of ignoring child posts
    $query->set( ‘post_parent’, 0 );
    }
    }
    new Events_Admin_List__Remove_Child_Events;

    function x_breadcrumbs() {

    if ( x_get_option( ‘x_breadcrumb_display’ ) ) {

    GLOBAL $post;

    $is_ltr = ! is_rtl();
    $stack = x_get_stack();
    $delimiter = x_get_breadcrumb_delimiter();
    $home_text = x_get_breadcrumb_home_text();
    $home_link = home_url();
    $current_before = x_get_breadcrumb_current_before();
    $current_after = x_get_breadcrumb_current_after();
    $page_title = get_the_title();
    $blog_title = get_the_title( get_option( ‘page_for_posts’, true ) );

    if ( ! is_404() ) {
    $post_parent = $post->post_parent;
    } else {
    $post_parent = ”;
    }

    if ( X_WOOCOMMERCE_IS_ACTIVE ) {
    $shop_url = x_get_shop_link();
    $shop_title = x_get_option( ‘x_’ . $stack . ‘_shop_title’ );
    $shop_link = ‘‘ . $shop_title . ‘‘;
    }

    echo ‘<div class=”x-breadcrumbs”>‘ . $home_text . ‘‘ . $delimiter;

    if ( is_home() ) {

    echo $current_before . $blog_title . $current_after;

    } elseif ( is_category() ) {

    $the_cat = get_category( get_query_var( ‘cat’ ), false );
    if ( $the_cat->parent != 0 ) echo get_category_parents( $the_cat->parent, TRUE, $delimiter );
    echo $current_before . single_cat_title( ”, false ) . $current_after;

    } elseif ( x_is_product_category() ) {

    if ( $is_ltr ) {
    echo $shop_link . $delimiter . $current_before . single_cat_title( ”, false ) . $current_after;
    } else {
    echo $current_before . single_cat_title( ”, false ) . $current_after . $delimiter . $shop_link;
    }

    } elseif ( x_is_product_tag() ) {

    if ( $is_ltr ) {
    echo $shop_link . $delimiter . $current_before . single_tag_title( ”, false ) . $current_after;
    } else {
    echo $current_before . single_tag_title( ”, false ) . $current_after . $delimiter . $shop_link;
    }

    } elseif ( is_search() ) {

    echo $current_before . __( ‘Search Results for ‘, ‘__x__’ ) . ‘“’ . get_search_query() . ‘”’ . $current_after;

    } elseif ( is_singular( ‘post’ ) ) {

    if ( get_option( ‘page_for_posts’ ) == is_front_page() ) {
    echo $current_before . $page_title . $current_after;
    } else {
    if ( $is_ltr ) {
    echo ‘‘ . $blog_title . ‘‘ . $delimiter . $current_before . $page_title . $current_after;
    } else {
    echo $current_before . $page_title . $current_after . $delimiter . ‘‘ . $blog_title . ‘‘;
    }
    }

    } elseif ( x_is_portfolio() ) {

    echo $current_before . get_the_title() . $current_after;

    } elseif ( x_is_portfolio_item() ) {

    $link = x_get_parent_portfolio_link();
    $title = x_get_parent_portfolio_title();

    if ( $is_ltr ) {
    echo ‘‘ . $title . ‘‘ . $delimiter . $current_before . $page_title . $current_after;
    } else {
    echo $current_before . $page_title . $current_after . $delimiter . ‘‘ . $title . ‘‘;
    }

    } elseif ( x_is_product() ) {

    if ( $is_ltr ) {
    echo $shop_link . $delimiter . $current_before . $page_title . $current_after;
    } else {
    echo $current_before . $page_title . $current_after . $delimiter . $shop_link;
    }

    } elseif ( x_is_buddypress() ) {

    if ( bp_is_group() ) {
    echo ‘‘ . x_get_option( ‘x_buddypress_groups_title’ ) . ‘‘ . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;
    } elseif ( bp_is_user() ) {
    echo ‘‘ . x_get_option( ‘x_buddypress_members_title’ ) . ‘‘ . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;
    } else {
    echo $current_before . x_buddypress_get_the_title() . $current_after;
    }

    } elseif ( x_is_bbpress() ) {

    remove_filter( ‘bbp_no_breadcrumb’, ‘__return_true’ );

    if ( bbp_is_forum_archive() ) {
    echo $current_before . bbp_get_forum_archive_title() . $current_after;
    } else {
    echo bbp_get_breadcrumb();
    }

    add_filter( ‘bbp_no_breadcrumb’, ‘__return_true’ );

    } elseif ( is_page() && ! $post_parent ) {

    echo $current_before . $page_title . $current_after;

    } elseif ( is_page() && $post_parent ) {

    $parent_id = $post_parent;
    $breadcrumbs = array();

    if ( is_rtl() ) {
    echo $current_before . $page_title . $current_after . $delimiter;
    }

    while ( $parent_id ) {
    $page = get_page( $parent_id );
    $breadcrumbs[] = ‘ID ) . ‘”>’ . get_the_title( $page->ID ) . ‘‘;
    $parent_id = $page->post_parent;
    }

    if ( $is_ltr ) {
    $breadcrumbs = array_reverse( $breadcrumbs );
    }

    for ( $i = 0; $i < count( $breadcrumbs ); $i++ ) {
    echo $breadcrumbs[$i];
    if ( $i != count( $breadcrumbs ) -1 ) echo $delimiter;
    }

    if ( $is_ltr ) {
    echo $delimiter . $current_before . $page_title . $current_after;
    }

    } elseif ( is_tag() ) {

    echo $current_before . single_tag_title( ”, false ) . $current_after;

    } elseif ( is_author() ) {

    GLOBAL $author;
    $userdata = get_userdata( $author );
    echo $current_before . __( ‘Posts by ‘, ‘__x__’ ) . ‘“’ . $userdata->display_name . $current_after . ‘”’;

    } elseif ( is_404() ) {

    echo $current_before . __( ‘404 (Page Not Found)’, ‘__x__’ ) . $current_after;

    } elseif ( is_archive() ) {

    if ( x_is_shop() ) {
    echo $current_before . $shop_title . $current_after;
    } elseif ( class_exists( ‘Tribe__Events__Main’ ) && tribe_is_event_query() ) {
    echo $current_before . ‘Events’ . $current_after;
    } else {
    echo $current_before . __( ‘Archives ‘, ‘__x__’ ) . $current_after;
    }

    }

    echo ‘</div>’;

    }

    }

    Then I added this the following, and this is what produced the error.
    <?php
    /**
    * Single Event Template
    * A single event. This displays the event title, description, meta, and
    * optionally, the Google map for the event.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php
    *
    * @package TribeEventsCalendar
    * @version 4.3
    *
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    }

    $events_label_singular = tribe_get_event_label_singular();
    $events_label_plural = tribe_get_event_label_plural();

    $event_id = get_the_ID();

    ?>

    <div id=”tribe-events-content” class=”tribe-events-single”>

    <p class=”tribe-events-back”>
    “> <?php printf( ‘« ‘ . esc_html_x( ‘All %s’, ‘%s Events plural label’, ‘the-events-calendar’ ), $events_label_plural ); ?>

    <!– Notices –>
    <?php tribe_the_notices() ?>

    <?php the_title( ‘

    ‘, ‘

    ‘ ); ?>

    <div class=”tribe-events-schedule tribe-clearfix”>
    <?php echo tribe_events_event_schedule_details( $event_id, ‘

    ‘, ‘

    ‘ ); ?>
    <?php if ( tribe_get_cost() ) : ?>
    <span class=”tribe-events-cost”><?php echo tribe_get_cost( null, true ) ?></span>
    <?php endif; ?>
    </div>

    <!– Event header –>
    <div id=”tribe-events-header” <?php tribe_events_the_header_attributes() ?>>
    <!– Navigation –>

    <?php printf( esc_html__( ‘%s Navigation’, ‘the-events-calendar’ ), $events_label_singular ); ?>

    <ul class=”tribe-events-sub-nav”>

    <!– .tribe-events-sub-nav –>
    </div>
    <!– #tribe-events-header –>

    <?php while ( have_posts() ) : the_post(); ?>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <!– Event featured image, but exclude link –>
    <?php echo tribe_event_featured_image( $event_id, ‘full’, false ); ?>

    <!– Event content –>
    <?php do_action( ‘tribe_events_single_event_before_the_content’ ) ?>
    <div class=”tribe-events-single-event-description tribe-events-content”>
    <?php the_content(); ?>
    </div>
    <!– .tribe-events-single-event-description –>
    <?php do_action( ‘tribe_events_single_event_after_the_content’ ) ?>

    <!– Event meta –>
    <?php do_action( ‘tribe_events_single_event_before_the_meta’ ) ?>
    <?php tribe_get_template_part( ‘modules/meta’ ); ?>
    <?php do_action( ‘tribe_events_single_event_after_the_meta’ ) ?>
    </div> <!– #post-x –>
    <?php if ( get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option( ‘showComments’, false ) ) comments_template() ?>
    <?php endwhile; ?>

    <!– Event footer –>
    <div id=”tribe-events-footer”>
    <!– Navigation –>

    <?php printf( esc_html__( ‘%s Navigation’, ‘the-events-calendar’ ), $events_label_singular ); ?>

    <ul class=”tribe-events-sub-nav”>

    <!– .tribe-events-sub-nav –>
    </div>
    <!– #tribe-events-footer –>

    </div><!– #tribe-events-content –>

    in reply to: Breadcrumbs labeled as Archives #1368300
    Nancy
    Participant

    Hey Victor,

    Many thanks! It worked! You are freakn’ awesome!!!!!

    Thanks again; I really appreciate all your help!

    Hugs,
    Nancy

    in reply to: Breadcrumbs labeled as Archives #1362607
    Nancy
    Participant

    Hey Victor,
    I tried adding it to the child theme, and the site broke. It produced a 500
    error.

    Any ideas as to why that happened?

    Nancy

    Youbydesignwebsites.com

    Everyone has a story.
    We can help you tell yours.

    in reply to: Breadcrumbs labeled as Archives #1362087
    Nancy
    Participant

    Hey Victor,
    Thanks so much for this. I have not placed it in the theme yet as I am wondering if when the theme is updated, your php will be over written.

    Should I place this in the child theme?

    Thanks very much.

    in reply to: Breadcrumbs labeled as Archives #1361277
    Nancy
    Participant

    Awesome! thanks very much Victor. I really appreciate it.

    in reply to: Breadcrumbs labeled as Archives #1360546
    Nancy
    Participant

    This reply is private.

    in reply to: Shortening the popup tool tip copy in month view #1360539
    Nancy
    Participant

    Hey Victor,
    I can’t thank you enough for providing the CSS to further style the featured events. As you know, I’ve been very frustrated with not being able to find the classes for these elements. I have not experienced this with any other plugin. I can always inspect the element and find what I am looking for. Again, thank you so, so much for providing this.

    As far as what type of support you can provide, based on my experience with other plugins and their support policies, and especially since it is so difficult to find the classes for the events elements, I didn’t think I was asking for custom development. To me, that would be a server side issue as opposed to a browser side issue. It’s not like I was trying to add the color blue to anything or asking for additional functionality. I was trying to eliminate that background color because someone thought it would be a cool feature.

    But again, I sincerely thank you for providing answers to my questions. I was beginning to think I was going to have to back up and thereby lose hours worth of work. I am very pleased now with the styling of the features on the home page. So again, thank you for going the extra distance on this. I really, really appreciate it.

    Best Regards,
    Nancy

    in reply to: Shortening the popup tool tip copy in month view #1356680
    Nancy
    Participant

    Hey Victor,

    Thanks so much for pointing me in that direction. I’ll use the excerpt box and customize accordingly.

    Next Issue:

    I have an events feed on the home page of my site. https://www.saintjamespreschool.com/

    If you scroll down past the opening slider, you’ll see it.

    I spent probably 1.5 hours styling this. . . getting rid of the bright blue background that evidently appears with featured events etc.

    How do I get the “raised panels” to extend the full width of the 2/3 column. I’d also like the event title and date to be to the right of the featured image, so in effect, the text would wrap around the image. Not that there’s enough text to wrap, but you get the idea. Below the screenshot is the CSS I am using to achieve what you see in the screen shot.

    /* —>Home Page-Event-FeedWith-featured-eventend-featured-event<—*/

    In Addition, that blue background shows up in the Month view. What is the CSS to make this transparent? I can’t tell you how many times I have inspected the element hoping to see that blue swatch appear so I can make it transparent. I just can’t find it. I know there is a solution to this. But honestly, if this cannot be changed, I cannot use the featured image category AT ALL. (Just an fyi, I am not mad at you! But I do want you to know how frustrating this is!)

    My number one complaint and frustration about this plugin is how difficult it is to change the styles. Either it’s nearly impossible to inspect the element, or when I do finally find the element and adjust the CSS so it looks good in one setting (list view or details page), it looks absolutely horrible in another setting (month, list, week view).

    Thank you so much for your help Victor. I really appreciate it.

    in reply to: Breadcrumbs labeled as Archives #1355593
    Nancy
    Participant

    Hey Victor,
    I am ready to resume work on this issue. I’ve attached the theme. Let me
    know if you need anything else.

    And just to clarify, what I hope will happen is that the user would click on
    events and see the house icon followed by the word Events. I’m not looking
    for each individual event to be in the breadcrumbs. . . just the word
    Events.

    Thanks very much for your help.

    Nancy

    Youbydesignwebsites.com

    Everyone has a story.
    We can help you tell yours.

    in reply to: Hiding Next and Previous Events when on the details page #1353054
    Nancy
    Participant

    Hey Patricia,

    This issue seems to have cleared up. . . not sure if you did anything on
    your end or not. I was getting a warning from WordPress about my max_
    input_vars being too low. I called the host and made some adjustments, then
    we “killed” the php, and now all is well.

    But, this does not change the fact that I still have ongoing styling issues.
    The word Month is now way too big. How can this be fixed? Thanks again for
    all your help.

    Nancy

    Youbydesignwebsites.com

    Everyone has a story.

    We can help you tell yours.

    in reply to: Breadcrumbs labeled as Archives #1352914
    Nancy
    Participant

    Hi Victor,
    Thanks so much for your email. I am also working on a styling issue with
    your team, and that has not been resolved. When that’s resolved, I’ll get
    back to you about this issue. I don’t think it would be wise for you to be
    working on your respective issues at the same time because php is involved.

    Thanks for your patience!

    in reply to: Hiding Next and Previous Events when on the details page #1352884
    Nancy
    Participant

    Hi Patricia,

    I followed your directions below. I did have to add a folder to my theme’s
    folder. I called it tribe-events and then placed the file: single-event.php
    into that folder. Then I deleted the li classes you requested in the copied
    file. In both instances what remained were empty

      tags. I’ve
      attached the file that’s being used at
      public_html/wp-content/themes/pro/tribe-events

      The result:

      1. The prev and next elements are gone in the details view. This is great
      and what we wanted to accomplish.

      Other problems have arisen

      1. There are no events showing in the month view. They do show in the list
      and week views

      2. The styling in the search bar at the top is now off.

      So first things first, how do we get the events to show in the month view?
      Just an fyi, I’ve set the default view to List. As you know, if you click on
      Month, you’ll see the issue.

      Thanks for all your help Patricia!

    Viewing 15 posts - 1 through 15 (of 25 total)