Home › Forums › Calendar Products › Events Calendar PRO › Removing "View As List" text from filtering
- This topic has 10 replies, 2 voices, and was last updated 8 years, 2 months ago by
Jennifer.
-
AuthorPosts
-
January 19, 2018 at 6:51 am #1430497
Matthew Seldon
ParticipantI’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
January 22, 2018 at 7:26 am #1432331Jennifer
KeymasterHi 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
January 22, 2018 at 8:17 am #1432392Matthew Seldon
ParticipantHi,
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.
January 23, 2018 at 6:40 pm #1434237Jennifer
KeymasterHi 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
January 23, 2018 at 11:57 pm #1434347Matthew Seldon
ParticipantHi 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.
January 29, 2018 at 4:26 am #1438683Matthew Seldon
ParticipantHi,
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.
February 5, 2018 at 9:17 am #1444277Jennifer
KeymasterHi 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!
February 6, 2018 at 6:08 am #1444994Matthew Seldon
ParticipantThanks 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!
February 7, 2018 at 11:59 am #1446773Jennifer
KeymasterHi 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
February 8, 2018 at 6:32 am #1447570Matthew Seldon
ParticipantAwesome, thanks Jennifer. It’s all working correctly now! 🙂
February 8, 2018 at 6:56 am #1447603Jennifer
KeymasterPerfect! 🙂
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!
-
AuthorPosts
- The topic ‘Removing "View As List" text from filtering’ is closed to new replies.
