tobak

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: Having trouble changing text strings #1135890
    tobak
    Participant

    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?

    in reply to: Having trouble changing text strings #1135362
    tobak
    Participant

    This reply is private.

    in reply to: Having trouble changing text strings #1135361
    tobak
    Participant

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

    in reply to: Having trouble changing text strings #1134378
    tobak
    Participant

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

    in reply to: Having trouble changing text strings #1133865
    tobak
    Participant

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

    in reply to: Having trouble changing text strings #1133355
    tobak
    Participant

    Hi!

    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.
    in reply to: Remove price from list view only #1130815
    tobak
    Participant

    Yes this works just fine. Thanks.

    in reply to: Side/secondary menu missingb from ECP pages #1127768
    tobak
    Participant

    I’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?

    in reply to: Side/secondary menu missingb from ECP pages #1126588
    tobak
    Participant

    ss1

    ss2

    • This reply was modified 7 years, 10 months ago by tobak.
    • This reply was modified 7 years, 10 months ago by tobak.
    in reply to: Side/secondary menu missingb from ECP pages #1126000
    tobak
    Participant

    The problem persists with vanilla 2014 theme. 2015 and 2016 doesn’t cause these issues.

    in reply to: Side/secondary menu missingb from ECP pages #1124948
    tobak
    Participant
    in reply to: Side/secondary menu missingb from ECP pages #1124319
    tobak
    Participant

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

    in reply to: Hide images in list view only #1122900
    tobak
    Participant

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

    in reply to: Hide images in list view only #1122894
    tobak
    Participant

    EDITED:

    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.
    in reply to: Hide images in list view only #1122880
    tobak
    Participant

    Hi George.

    It seems to work now, thanks. Can you explain why the second bit worked? They seem very similar.

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