Johan

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: All category pages show up blank (white) #1634221
    Johan
    Participant

    Hi and thanks. I’m afraid to say that I have now disabled the row 150 like you said, but the category pages are still white/blank!

    Johan

    in reply to: All category pages show up blank (white) #1631896
    Johan
    Participant

    This reply is private.

    in reply to: All category pages show up blank (white) #1630856
    Johan
    Participant

    This reply is private.

    in reply to: All category pages show up blank (white) #1630807
    Johan
    Participant

    Hi again.
    Hope anyone can respond to this asap! Thank you!

    Johan

    Johan
    Participant

    Hi there Geoff, that is great news for all of us using recurring event a lot and also needs WPML on the site. I will use the workarounds until the fix release. Is there a way to “subscribe” to this fix? Meaning is there a way to get notice as soon the fix is available?

    All the best.

    in reply to: Page title on all past events says: "Upcoming Event" #1087293
    Johan
    Participant

    Thank you for understanding.
    Your Yoast idea did the trick. Now there are no addition of Upcoming events or Past events text on ANY single event page. Just the title of the event – and that is just fine.

    So to sum i up. The core problem was not that the SEO title wrongly said Upcoming events on past single events pages – the problem was that it should not be there at all.
    This text should only be shown in list view pages and not on singel event pages over all?
    Isn’t that right?

    • This reply was modified 10 years, 1 month ago by Johan.
    in reply to: Page title on all past events says: "Upcoming Event" #1087187
    Johan
    Participant

    Hello, your code makes no difference on past single events pages.
    But however if I change THIS line instead:
    $title_upcoming = 'XXXXX'; // List View: Upcoming events

    …THEN the SEO titles on past single events pages change to XXXXX AND the Upcoming events change to XXXXX also. There you have the problem and this is what I have been trying to explain the last three four posts or so. Please read on…

    And I just found out that you have the same problem on your own demo??
    Please look at the link of your own past single event page below (it’s the same on all of them). The SEO title says Upcoming event.
    So, my conclusion is that this has been a bug in TEC all along and not just an issue on my site? Is this correct?

    Or how do you explain the problem in the demo?
    LINK:
    http://wpshindig.com/event/writespeakcode-work-night/2016-03-03/

    Respectfully,
    ~ Johan

    in reply to: Page title on all past events says: "Upcoming Event" #1087032
    Johan
    Participant

    Hi again, so i added this code below to functions.php.
    I can change the SEO titles but the problem remains the same. That past events is foe some reason using the same “code label” as upcoming events: $title_upcoming
    So you will have to help me alter the code below, so that the past single events pages are not labeled Upcoming events (Aktuella evenemang in Swedish) and at the same time remain the titles of upcoming singe events pages?

    
    <?php
    /*
     * Alters event's archive titles
     */
    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'; // 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 =      '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 = '<a href="' . esc_url( tribe_get_events_link() ) . '">' . $title . '</a>';
    		$title .= ' › ' . $cat->name;
    	}
    	return $title;
    }
    add_filter( 'tribe_get_events_title', 'tribe_alter_event_archive_titles', 11, 2 );
    • This reply was modified 10 years, 1 month ago by Johan.
    in reply to: Page title on all past events says: "Upcoming Event" #1087026
    Johan
    Participant

    Ah, okey,
    I will give it another shot and tell you how it goes.
    Thank you for your patience, Hunter.

    Have a nice day.
    ~ Johan

    in reply to: Page title on all past events says: "Upcoming Event" #1086308
    Johan
    Participant

    Hi Hunter.
    Hmm, will this really solve my issue? Isn’t it just for changing the wording?
    My past single events is labeled “Upcoming events” and if I change that to “Past events” it will change the titels of real upcoming events too – will it not? And in that case the Upcoming events will be titled Past events.

    My client is really on me on this so I must solve this problem I afraid…
    Hope to hear from you soon.

    in reply to: Page title on all past events says: "Upcoming Event" #1085300
    Johan
    Participant

    Just want to add…
    I tested to inactivate ALL plugins except for The Events Calendar (not even PRO) and switching to defaut WP theme. And the problem remains I’m afraid. My client are bugging me about the importance of this so hope we can come up with some ideas. Thank you!

    in reply to: Page title on all past events says: "Upcoming Event" #1085285
    Johan
    Participant

    This reply is private.

    in reply to: Page title on all past events says: "Upcoming Event" #1084899
    Johan
    Participant

    Hello Hunter!

    Yes, I changed to Twenty Fifteen Theme and the problem was the same.
    Here is a link to an event that has passed that says Upcoming Event in Swedish = Kommande evenemang

    http://hectornado.se/sv/evenemang/hertha-hillfon-skalen-mitt-mantra/

    in reply to: Change Link lable #1084754
    Johan
    Participant

    Hi there. I added this code and it worked – it changed my word.
    But after that Events Calendar change Language compleatly from Swedish to English in the admin and everywhere
    How do I prevent that?

    /*
     * EXAMPLE OF CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR
     * See the codex to learn more about WP text domains:
     * http://codex.wordpress.org/Translating_WordPress#Localization_Technology
     * Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'...
     */
    function tribe_custom_theme_text ( $translations, $text, $domain ) {
     
    	// Put your custom text here in a key => value pair
    	// Example: 'Text you want to change' => 'This is what it will be changed to'
    	// The text you want to change is the key, and it is case-sensitive
    	// The text you want to change it to is the value
    	// You can freely add or remove key => values, but make sure to separate them with a comma
    	// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
    	$custom_text = array(
    		'Find out more' => 'Läs mer',
    	);
     
    	// If this text domain starts with "tribe-" or "the-events-", and we have replacement text
    	if((strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0) && array_key_exists($text, $custom_text) ) {
    		$text = $custom_text[$text];
    	}
     
    	return $text;
    }
    add_filter('gettext', 'tribe_custom_theme_text', 20, 3);
    Johan
    Participant

    Hello again!
    I have some more challenges im afraid. On single events pages I also have a list for upcomomg events in the sidebar. And that list should not include past events.

    It’s in the content of single events page that I have included a shortcode to display events happening during the exhibition and that list I want to stay forever.

    Example: Look at this single event and you’ll see the list in the sidebar and the list that says:
    Event happening during this exhibition
    31 mars, 2016 @ 08:00 – 17:00

    Is there anyway to exclude the sidebar from the code? That would solve the problem!
    Thank you!

    http://hectornado.se/sv/evenemang/hilma-af-klint/

    • This reply was modified 10 years, 1 month ago by Johan.
Viewing 15 posts - 1 through 15 (of 21 total)