Removing "View As List" text from filtering

Home Forums Calendar Products Events Calendar PRO Removing "View As List" text from filtering

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1430497
    Matthew Seldon
    Participant

    I’m hoping that you can help me. I’ve got Events Calendar Pro and I have the calendar displaying on my homepage using the following shortcode: [tribe_events view=”list”] the problem is that as the calendar is showing in a really narrow column when on smaller displays the “VIEW AS: List” dropdown is squishing the label “List” “Day” “Month” down so that each character is below each other (I’ve attacked an image to show what I mean). What I’d like to do is remove these words from the calendar so that I don’t get this problem as this would be the easiest method for the site I’m using it on. I’ve looked in the source file in WordPress but there are so many files I’m hoping that you can point me in the right direction of which file I would need to get into to make this change?

    Matt

    #1432331
    Jennifer
    Keymaster

    Hi Matt!

    You can edit the bar and remove/change the text there by following the instructions in our themer’s guide…the template you’ll want can be found at wp-content/plugins/the-events-calendar/src/views/modules/bar.php.

    We are a bit limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know. I’ll be happy to point you in the right direction.

    Thanks,

    Jennifer

    #1432392
    Matthew Seldon
    Participant

    Hi,

    Thanks for the response. I’ve gone into the file mentioned ( wp-content/plugins/the-events-calendar/src/views/modules/bar.php ) but I can’t find any text in there that relates to “Month” “List” or “Day”. Am I missing anything? I found note at the top of the file which says:

    • $filters and $views variables are loaded in and coming from
    • the show funcion in: lib/Bar.php

    but I’m not sure where this file is located either.

    #1434237
    Jennifer
    Keymaster

    Hi Matthew,

    If you want to remove the view options entirely, then you can remove the “if” block under the “Views” comment:


    1 ) { ?>



    1 ) ?>

    Can you give this a try and let me know if it works for you?

    Thanks,

    Jennifer

    #1434347
    Matthew Seldon
    Participant

    Hi Jennifer,

    I don’t want to remove the views entirely, I just want to remove the text next to the graphics that says “Month” “List” or “Day” so that only the icons remain.

    #1438683
    Matthew Seldon
    Participant

    Hi,

    Please could you let me know how to remove the text next to the graphics that says “Month” “List” or “Day” so that only the icons remain?

    Thanks.

    #1444277
    Jennifer
    Keymaster

    Hi Matthew,

    I’m sorry for the delayed response here!

    You can remove the text and keep the icons by removing the following (line 46) in wp-content/plugins/the-events-calendar/src/views/modules/bar.php:

    Be sure to copy this template into your child theme and then edit it there instead of directly in the template files. If you edit the template files directly, your changes will be overridden next time you update the plugin.

    Let me know if this works!

    #1444994
    Matthew Seldon
    Participant

    Thanks for this. I’ve managed to find the line and remove it in the original file (which is not ideal I realise as I should do it in the child theme) So I’ve gone ahead and created a folder in my child theme called “tribe-events” and duplicated the bar.php file in there and removed the line as instructed in the Themer’s Guide but it hasn’t worked that way.

    Should I be putting in any further sub-folders in the tribe-events folder or is something else I’m doing wrong?

    Sorry for all these questions!

    #1446773
    Jennifer
    Keymaster

    Hi Matthew,

    No worries! Sounds like you’re almost there…

    In your tribe-events folder, you’ll need to create a “modules” folder, and then you can copy the bar.php template into there. This template should now override the default one in the plugin files.

    Can you give this a try and see if it works?

    Thanks,

    Jennifer

    #1447570
    Matthew Seldon
    Participant

    Awesome, thanks Jennifer. It’s all working correctly now! 🙂

    #1447603
    Jennifer
    Keymaster

    Perfect! 🙂

    I’ll go ahead and close this out, but if you run into any other issues, please feel free to open up a new thread!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Removing "View As List" text from filtering’ is closed to new replies.