Home › Forums › Calendar Products › Events Calendar PRO › Disable 768px Stylesheet
- This topic has 10 replies, 2 voices, and was last updated 8 years, 6 months ago by
Daniel.
-
AuthorPosts
-
September 15, 2017 at 7:52 pm #1350081
Daniel
ParticipantHi there.
I do not want the styles that are provided by the media tags affecting max-width 768px.
I am using the tribe-events styles, on the default events template.
How can I remove those styles to continue using the desktop styles?
September 18, 2017 at 10:43 am #1350786Jaime Marchwinski
KeymasterHi Daniel,
Thanks for reaching out again!
In order to disable the responsive styles, you can remove the breakpoint where the styles switch over for smaller devices. In order to do that, you can follow along in the Themer’s Guide. I know I linked to this document in our last response, but here it is again, just in case: https://theeventscalendar.com/knowledgebase/themers-guide/
The section called, “Responsive Templates” can walk you through how to remove the breakpoints, so that you can continue to use the desktop styles.
Let me know how it goes!
Thanks,
Jaime
October 2, 2017 at 11:52 pm #1358132Daniel
ParticipantI am confused.
You can’t have PHP in a CSS file. So where is the PHP file that has the function tribe_events_mobile_breakpoint at?
October 3, 2017 at 6:00 am #1358232Jaime Marchwinski
KeymasterHi Daniel,
You have the option to either alter the CSS mobile styles yourself, or you can remove responsive styles altogether by adding the following into your theme’s functions.php file:
add_filter( 'tribe_events_kill_responsive', '__return_true');To alter the CSS stylesheets, you can follow the guide here: https://theeventscalendar.com/knowledgebase/themers-guide/#responsive
I hope this helps to provide some clarity for you. Let me know how it goes!
Thanks,
Jaime
October 3, 2017 at 6:46 pm #1358677Daniel
ParticipantIs this the functions.php in my theme folder? Otherwise, where is functions.php?
October 4, 2017 at 5:04 am #1358818Jaime Marchwinski
KeymasterHi Daniel,
Yes, it is in your theme folder. The path is wp-content/themes/your-theme/functions.php. Let me know if you need any further clarification and let me know how it goes!
Thanks,
Jaime
October 10, 2017 at 11:51 am #1361714Daniel
ParticipantHi there, one last question, can that PHP code be put anywhere in that file? Or does it need to be in a specific function?
-
This reply was modified 8 years, 6 months ago by
Daniel.
October 11, 2017 at 4:11 am #1361981Jaime Marchwinski
KeymasterHi Daniel,
You can add in the code right after the initial <?php in your functions.php file. Let me know if anything else comes up!
October 11, 2017 at 10:18 pm #1362406Daniel
ParticipantWorks great! Thanks.
October 12, 2017 at 5:45 am #1362469Jaime Marchwinski
KeymasterGlad we could help, you are welcome back in our support forums any time!
For now, I am going to close this thread.
Have a great week!
-
This reply was modified 8 years, 6 months ago by
-
AuthorPosts
- The topic ‘Disable 768px Stylesheet’ is closed to new replies.
