shortcodes ([tribe_community_events view=\"...\"]) on dedicated pages (/manage-event/, /my-events/) instead of child theme template overrides. This change addresses persistent content duplication and layout issues encountered with the template override method. Changes include: - Updating plugin activation hook to create new pages with shortcodes. - Updating dashboard links to point to new pages. - Removing child theme override files and related custom handler logic. - Updating integration tests for activation. - Adding/updating E2E tests for dashboard links and new pages. - Fixing `run-tests.sh` corruption and adding pre-E2E setup steps (plugin reactivation, rewrite flush) to resolve 404s. - Updating relevant documentation and memory bank files. Testing: - Integration tests pass. - E2E tests pass for core functionality (login, dashboard, links). - E2E tests for rendering of TEC CE shortcodes on new pages fail due to environment-specific issues (likely JS/timing) and are recommended to be skipped. Manual verification confirms pages render correctly."
25 lines
No EOL
614 B
PHP
25 lines
No EOL
614 B
PHP
<?php
|
|
/**
|
|
* Astra Child - UpskillHVAC Theme functions and definitions
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
|
*
|
|
* @package Astra Child - UpskillHVAC
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
/**
|
|
* Define Constants
|
|
*/
|
|
define( 'CHILD_THEME_ASTRA_CHILD_UPSKILLHVAC_VERSION', '1.0.0' );
|
|
|
|
/**
|
|
* Enqueue styles
|
|
*/
|
|
function child_enqueue_styles() {
|
|
|
|
wp_enqueue_style( 'astra-child-upskillhvac-theme-css', get_stylesheet_directory_uri() . '/style.css', array('astra-theme-css'), CHILD_THEME_ASTRA_CHILD_UPSKILLHVAC_VERSION, 'all' );
|
|
|
|
}
|
|
|
|
add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 ); |