• Resolved mosscatski

    (@mosscatski)


    Hello and thank you for creating this really nice plugin! Everything seems to be working fine, but for some odd reason, my calendar page is titled “Shop.” That’s curious because we don’t sell anything and don’t have any other pages or posts with that name. I couldn’t even find the word “shop” in the theme files. If we could make it say something like “Events Calendar” it would be splendid.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @mosscatski ,

    Thank you for reaching out and for your kind words.

    For us to understand and learn more about your setup, could you provide the following version of the following?

    1. PHP
    2. WordPress
    3. The Events Calendar
    4. Theme and Version
    Thread Starter mosscatski

    (@mosscatski)

    Sure!

    1. PHP PHP version7.4.33?
    2. WordPress Current version: 6.7.2
    3. The Events Calendar Version 6.10.1.1
    4. Theme and Version World Wide Version: 2.0.5 By?Goodlayers
    Plugin Support tristan083

    (@tristan083)

    Hi @mosscatski ,

    Thank you for your message and the information.

    It looks like your theme isn’t publicly available or is existing in WordPress’ Themes archive.

    Anyway, some themes does display their own title for The Events Calendar archive. In that regard, kindly try appending the following code snippet in your theme’s functions.php file or through a Code Snippets plugin, and see if this alleviates the situation.

    add_filter('tribe_get_events_title', 'my_get_events_title');
    function my_get_events_title($title) {
    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    return 'Events Calendar';
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    return 'Events Calendar' . ' » ' . single_term_title('', false);
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    return 'Events List';
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    return get_the_title();
    } elseif( tribe_is_day() ) { // Single Event Days
    return 'Events on: ' . date('F j, Y', strtotime($wp_query->query_vars['eventDate']));
    } elseif( tribe_is_venue() ) { // Single Venues
    return $title;
    } else {
    return $title;
    }
    }
    Thread Starter mosscatski

    (@mosscatski)

    Good day. I purchased the theme from Envato years ago, but fortunately it is still supported and maintained. It is not a free theme that comes from www.remarpro.com.

    No, that code didn’t do anything. I eventually just searched through the theme and found the word “Shop” in header.php and I changed it there, that seemed to work.

    Now it looks like this, with ‘Events’ where the word ‘shop’ was before:

            if( is_category() || is_tax('portfolio-category') || is_tax('product_cat') ){
                    $title = __('Category','gdl_front_end');
                    $caption = single_cat_title('', false);
                }else if( is_tag() || is_tax('portfolio-tag') || is_tax('product_tag') ){
                    $title = __('Tag','gdl_front_end');
                    $caption = single_cat_title('', false);
                }else if( is_day() ){
                    $title = __('Day','gdl_front_end');
                    $caption = get_the_date('F j, Y');
                }else if( is_month() ){
                    $title = __('Month','gdl_front_end');
                    $caption = get_the_date('F Y');
                }else if( is_year() ){
                    $title = __('Year','gdl_front_end');
                    $caption = get_the_date('Y');
                }else if( is_author() ){
                    $title = __('By','gdl_front_end');
    
                    $author_id = get_query_var('author');
                    $author = get_user_by('id', $author_id);
                    $caption = $author->display_name;                 
                }else{
                    $title = __('Events','gdl_front_end');
                }
    
                print_page_header($title, $caption);              
            } 
        ?>
        <div class="content-outer-wrapper">
            <div class="content-wrapper container main ">
    Plugin Support tristan083

    (@tristan083)

    That’s great, @mosscatski ! Thank you for sharing the information.

    Please feel free to reach out if you have further questions/concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that there hasn’t been any recent activity on this thread, so we’ll consider it resolved. However, if you have any additional questions or concerns, feel free to start a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.