- Inspect the page and look for some really specific CSS class
- Use your editor to search all files inside
wp-content/plugins/the-events-calendar/src/viewsfor the class - Find the file you want to change
- Clone the file and folder structure into your override directory
wp-content/themes/westernmarketfull/tribe-events - Make your edits in the cloned file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'init', 'steam_register_custom_taxonomy_effect'); | |
| /** | |
| * Register Custom Taxonomy | |
| * | |
| * @return void | |
| */ | |
| function steam_register_custom_taxonomy_effect() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // check to see if there is a post type in the URL | |
| if ( isset( $_GET['post_type'] ) && $_GET['post_type'] ): | |
| $filtered_posts = new WP_Query( array( | |
| 'post_type' => $_GET['post_type'], | |
| 'posts_per_page' => 12, | |
| 'orderby' => 'post_date', | |
| 's' => $_GET['s'], | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('save_post', function($post_id, $post, $update){ | |
| if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {// ignore autosave | |
| return; | |
| } | |
| if (!$update) { // ignore Add New post | |
| return; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| form.form .required > label:nth-child(1):after { | |
| content: ' *'; | |
| color: #ffffff; | |
| font-size: 12px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter('admin_body_class', function ($classes) { | |
| global $post; | |
| $post_type = get_post_type($post->id); | |
| $template_slug = str_replace('.php', '', get_page_template_slug($post->ID)); | |
| $template_class = "$post_type-template-$template_slug"; | |
| return "$classes $template_class"; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function print_login() { | |
| echo '<div id="login">'; | |
| echo '<div class="login-wrapper">'; | |
| echo '<div class="label">Login</div>'; | |
| echo '<div class="login-container">'; | |
| echo '<div id="close"><i class="fa fa-close"></i> Close</div>'; | |
| if (should_hide_login()) { | |
| echo '<p class="timesheet-unavailable-msg">We apologize for the inconvenience, but the Self Service portal is closed as this time. Access will resume at 6:00pm EST.</p>'; | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a file called ".user.ini" in the site root | |
| upload_max_filesize = 64M | |
| post_max_size = 64M | |
| memory_limit = 64M | |
| max_execution_time = 300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * The file that defines the core plugin class | |
| * | |
| * A class definition that includes attributes and functions used across both the | |
| * public-facing side of the site and the admin area. | |
| * | |
| * @link interactiverob.com | |
| * @since 1.0.0 |