Help Desk

Active filters title not reflected on events

  • Posts: 202 Topics: 72
    | Permalink

    Hi,
    Changing titel under the Filters bar “Active Filters” for i.e. “Event Category” and “Tags” doesn’t reflect when clicking an event to view it. The titles here are unchanged showing as “Event Category:” and “Event Tags:”.

    This must clearly be a bug as we paid a great deal of money for both plugins believing they would correspond?

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Hi – I’m sorry to hear you are experiencing difficulties.

    Can you clarify what the exact problem is just to avoid any misunderstandings? Is it the fact that, when viewing March 2014 (as an example) filtering down to a single category doesn’t cause the calendar title to update to something like Events for March 2014: Cateegory Name?

    Or is it something else? If so and you can provide a URL so we can see the problem that might be helpful.

    Thanks!

    Posts: 202 Topics: 72
    | Permalink

    Hi Barry
    No, the fact is this: In the Events Calendar Settings / Filters / Active filters I’ve changed the default title for “Event Category” and “Tags” to something else. I then click an event to view it as a Single Page Event (www.domain.com/event/test-event/) but the title showing for “Event Category” and “Tags” is still the default one and NOT my renamed title. This is a bug.

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Thanks for clarifying: so I’m still unsure of how you changed the title – but assuming for the moment you did this by means of a translation it’s worth bearing in mind that both Filter Bar and The Events Calendar use different text domains and the translation would need to be made in both cases.

    For the avoidance of doubt, can you confirm how you implemented your change?

    Posts: 202 Topics: 72
    | Permalink

    @Barry what do you mean by “unsure how I changed the title” !? – It’s an option:
    https://www.dropbox.com/s/ysuqh9kq8cql3pp/Screenshot%202014-03-08%2009.21.49.png

    But what is the logic of not having both Filter Bar and Events Calendar using the same text domains? So that once we change the Filter Bar Active filters titles it will of course change everywhere? As this is not the case how and where do we then change the Single Page Event titles/headings for “Events Category” and “Event Tags” ?

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Thanks for clarifying – and apologies for the confusion:

    But what is the logic of not having both Filter Bar and Events Calendar using the same text domains? So that once we change the Filter Bar Active filters titles it will of course change everywhere?

    Since you are using the Filter Bar Settings to control this the text domain isn’t as relevant. I can definitely understand your confusion, but I would draw an analogy with something like the WordPress categories widget: we can assign any title we like, but it doesn’t mean that same title will be used everywhere on the site that there is a reference to categories.

    The setting is also clearly “pinned” to the Filter Bar – so while I understand what you are trying to achieve and why, it may equally be something other users wouldn’t like to see (for example, they may simply want to shorten the labels in the context of the filter bar only – simply as a space saving measure – but prefer to keep the full labels elsewhere).

    With that said, we are always open to new feature requests if you would like to post one.

    As this is not the case how and where do we then change the Single Page Event titles/headings for “Events Category” and “Event Tags” ?

    To change the labels that appear in the “meta” section of the single event page you can add snippets like this one to your theme’s functions.php file.

    Does that help?

    Posts: 202 Topics: 72
    | Permalink

    Hi Barry
    The snipped trick doesn’t work.

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    I’m sorry to hear that. It’s difficult to help without a little more information though, can you confirm where you added the snippet and perhaps share the entire file via Pastebin/Gist?

    Posts: 202 Topics: 72
    | Permalink

    Hi Barry
    I’ve paste the snippet into the functions.php file like this: http://pastebin.com/zCVTqyhf

    Posts: 202 Topics: 72
    | Permalink

    Hi Barry
    Actually pasting the snippet into functions.php file stops the whole site from loading.

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    I can’t see your paste, unfortunately – you seem to have marked it as private.

    Posts: 202 Topics: 72
    | Permalink

    Could you please try again now?

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Looks fine to me. The very same code creates no issues on my side – the appropriate labels are changed to “Accessibility” and “Keywords”. Perhaps you could change the WP_DEBUG setting in wp-config.php to true and report back with any pertinent error messages that are displaying?

    This approach is one we’ve used successfully on the team and with a number of customers, so I’m unsure why it would be problematic in your case – but any error messages you might uncover (or you could view the server error log if you have sufficient access) might point us in the right direction as to what is going wrong in your case.

    Posts: 202 Topics: 72
    | Permalink
    This reply has been marked as private.
    Posts: 202 Topics: 72
    | Permalink
    This reply has been marked as private.
    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Can we back-track a little:

    Actually pasting the snippet into functions.php file stops the whole site from loading.

    So to confirm, this is no longer a problem – that is, you have the snippet in place but the only issue is that the labels are not being changed as expected?

    If so can you provide any other information about what changed – as honestly I’m not sure why this is not working for you or why you experienced such a problem. Perhaps you could test it out with a default theme and see if it works then, in case there is some sort of conflict here.

    Posts: 202 Topics: 72
    | Permalink

    Hi Barry, the snippet is in place as shown here: http://pastebin.com/zCVTqyhf but as you see the snippet is not working or changing anything: https://www.dropbox.com/s/g0cz08sz7xovmkr/Screenshot%202014-03-14%2008.54.52.png
    it is very important that we get this working.

    Posts: 202 Topics: 72
    | Permalink

    If the snippet is not working is it must be possible to change the headings manually somewhere?

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    I appreciate it’s not working – so can I ask you to try the steps I outlined in my last reply? To recap, that was switching theme (ideally to a default and unmodified theme such as Twenty Twelve), putting that snippet back in place and seeing if it works as expected then.

    If the snippet is not working is it must be possible to change the headings manually somewhere?

    You could certainly take a different approach. Please see my reply in this other thread.

    Posts: 202 Topics: 72
    | Permalink

    It’s not working! I deactivated all plugins, installed Twenty Twelve and placed the snippet in its functions.php file with no luck. Something is blocking in it. I did try as well on a different site/server and that worked. So could it be hosting related? Should I re-install ECP ? … or wouldn’t it just be easier if you guide me to which file I can change the headings manually?

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    OK, I have to stress though that editing core plugin code is not something we recommend. However, please look at the-events-calendar/public/advanced-functions/meta.php – you will find the various strings you want to edit from approximately line 293 onwards.

     

    Posts: 202 Topics: 72
    | Permalink

    Hi, it is the specific theme we are using that causes the snippet not to work. We have testet this fully now. This is strange as your other snippets (“change_week_view_title”, “add_text_below_week_title” and “filter_events_title”) does work fine. Who should we address this problem to?

    We did not find the label for Events Category in the meta.php file so we are not any closer to a solution.

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Hi Lars,

    We did not find the label for Events Category in the meta.php file so we are not any closer to a solution.

    If you find the entry for tribe_event_category (which ought to begin around line 331) you should find that you find changing:

    'label' => null

    To:

    'label' => 'Label for the category field'

    Does the trick. Again, I’d strongly advise against editing core code in this manner, but if it’s the path you want to take because of theme incompatibility issues then it’s entirely your choice.

    Hi, it is the specific theme we are using that causes the snippet not to work. We have testet this fully now.

    It’s a real shame we didn’t hit on this a lot earlier and I am unsure why it would be a problem with this specific theme or why it might affect this particular mechanism within The Events Calendar. Perhaps you could touch base with the theme author and discuss with them?

    I do hope the above advice gets you sorted on this one and I’ll go ahead and close this thread. If we can assist with any other issues please do feel free to create new threads as needed.