Forum Replies Created
-
AuthorPosts
-
tobakParticipant
At this point, I would be happy if I could simply hide (or otherwise get rid of) the string “Event Category”. Am I right in assuming that this is actually two strings? I can set “Event” to a different value, but “category” isn’t responding to my attempts.
And I still don’t understand why the entire Details box reverts to English because I’m trying to change a single string. Is it simply an effect of the code snippet I’m using or is something else going on?
tobakParticipantThis reply is private.
tobakParticipantYes, I place it in functions.php in my child theme. Like I said, the default examples appear to work. Can’t get it to work with any other strings.
It also removes any language customizations and reverts the text in the details box to English. Not sure if this is part of the deal or some other error I can’t identify. I’m also not sure if this is related to the first problem. I have tried calling the strings in both English and Danish but neither works.
tobakParticipant<?php
function tribe_custom_theme_text ( $translations, $text, $domain ) {
$custom_text = array(
‘Event Category’ => ‘test’,
);if( (strpos($domain, ‘tribe-‘) === 0 || strpos($domain, ‘the-events-‘) === 0 || strpos($domain, ‘event-‘) === 0) && array_key_exists($text, $custom_text) ) {
$text = $custom_text[$text];
}return $text;
}
add_filter(‘gettext’, ‘tribe_custom_theme_text’, 20, 3);I have tried with a bunch of other strings like Date, Time, Cost etc. Nothing seems to work except the default values in the example.
tobakParticipantYes, I’m using the code from the bottom of the page. It works for the standard examples included in the code, but I can’t get it to work on that specific string.
tobakParticipantHi!
How do I determine what text domain a string of text belongs to?
The string in question is part of the “Details” box shown on single event pages. I tried altering one of the existing domains to “event-tickets” but that didn’t help either.Alternatively, is there a simple way to just remove this string? I originally intended to simply replace “Event Category” with nothing (blank), but it’s proving more difficult than I first thought.
- This reply was modified 7 years, 10 months ago by tobak.
tobakParticipantYes this works just fine. Thanks.
tobakParticipantI’m not sure I want to fiddle around with the settings too much. As you’re probably aware, there is a bug in the current release that causes all kinds of issues with settings, and I’d rather not mess with settings until these bugs are dealt with.
Could you define “heavily modified”? I have added only a minimum of HTML and PHP, it’s mostly done with CSS. Changing to a different theme (and thus a different stylesheet) should remove any issues caused by CSS right?
tobakParticipanttobakParticipantThe problem persists with vanilla 2014 theme. 2015 and 2016 doesn’t cause these issues.
tobakParticipantThese are the most useful forum posts I found. I realize most are several years old, but it’s all I could dig up about this issue.
https://wordpress.org/support/topic/events-calendar-problem-resulting-in-missing-menu-bar
https://wordpress.org/support/topic/header-menu-gone-with-events-listcalendar-view
https://theeventscalendar.com/support/forums/topic/navigation-is-missing-on-events-page/
tobakParticipantHello.
The theme is a modified twentyfourteen. Are you saying there are conflicts even with the basic wordpress themes? I have tried every defafult theme, and they all have this problem. Every forum post and help thread I can find on the subject claim that permalinks are the issue. But changing permalink type didn’t help.tobakParticipantThe culprit appears to have been my @font-face tag. Either I was using it incorrectly, or it doesn’t play nice with certain other types of CSS. Either way, dumping @font-face to the bottom of the style sheet solved this issue as well as a bunch of others.
Thanks again for the help.
tobakParticipantEDITED:
So I had some weird issues, first it worked, then it didn’t. Moving the CSS you provided to the top of the style sheet fixed it, but I’m a little worried there will be other issues later. Any idea what might be interfering here?
- This reply was modified 7 years, 10 months ago by tobak.
tobakParticipantHi George.
It seems to work now, thanks. Can you explain why the second bit worked? They seem very similar.
-
AuthorPosts