Fitrush - Fitness and Health Supplements WordPress Theme

Fitrush - Fitness and Health Supplements WordPress Theme 1.4.1

Free Download with Account
Added:
- Theme Options > Performance: "Script & style loading" (Optimized / Legacy) and one switch per optimization (Slider Revolution only where used, plugin files only where needed, above-the-fold image priority, CSS bundle, jQuery Migrate, Elementor Kit fonts, accessibility, mega menu cache). Updated sites keep Legacy until it is changed; the demo presets use Optimized.
- On-demand script loader: sliders, countdown, accordion, counters, masonry, price filter... are only loaded on pages that show them; lightbox, zoom, quick view and the YITH Compare table load on first use.
- Customer Reviews styles, scripts and lightbox are only loaded on product pages and on pages that show its shortcodes or blocks (Optimized mode).
- Accessibility: main landmark, names for image/icon links (account, banners, close buttons, product images, add to cart icons, quantity buttons), product tab roles, "Read more" links include the post title for screen readers, WordPress .screen-reader-text styles.
Updated:
- Sliders are initialized once, from DOM ready, one per task (sliders far below the fold when they come close).
- WOFF2 + font-display:swap for the Elementskit and BZOTech icon fonts (443 KB -> 202 KB), theme Google Fonts with display=swap.
- Theme stylesheets loaded as one bundle per page type (separate files and their handles are still available).
- First large content image loads with high priority; the header background image is preloaded when it is the largest element of the first screen.
- Mega menu and "Append content after footer" HTML cached for guests (cleared when content or options are saved).
- Script versions follow the file time, so browsers and CDNs get the updated files.
- Plugin Bzotech Elementor 2.3 (included in the theme package).
Fix:
- Layout shift on product pages: the CSS of the Elementor product template is loaded in <head>, the gallery thumbnails keep their place before the slider starts.
- Layout shift on WooCommerce, blog and inner pages: the Elementor Kit styles are loaded in <head>.
- Slider created twice (plugin + theme) on every page.
- JavaScript error after "Add to cart" (outdated ajax.min.js) and in the quick view opened from a product page.
- Product gallery images resized again on every page view.
- Add "if ( ! defined( 'ABSPATH' ) ) { exit; }" guard to all theme PHP files to prevent direct file access.
- Add nonce check to AJAX handler bzotech_load_ajax_tool_panel().
- Sanitize/clamp $_GET number, posts_per_page, page inputs (archive.php, index.php, search.php, top-filter.php, shop/product-list ajax handlers...) to prevent abuse via invalid values.
- Harden Bzotech_Template::load_view()/load_view_assets() against path traversal.
- Escape output with esc_html()/wp_kses_post() in ajax tool-panel HTML and yith-compare-button.php icon output.
- Fix fatal TypeError on PHP 8 when AJAX json_decode() returns null (new bzotech_decode_ajax_json() helper).
- Fix "session already active" PHP warnings by guarding session_start()/session_destroy() with session_status().
- Fix double-encoded Google Fonts URL.
- Fix body-background option type (Redux/metabox), reworked to unified "background" control.
- Fix mega menu init timing (hooked to init instead of running at file load).
- Fix Redux config loading too early (deferred to init hook).
- Fix undefined $item_wrap/$item_inner notices in post/product grid templates.
Updated:
- Migrate icon library from Font Awesome to Line Awesome across templates, post-meta output and social icon maps.
- Migrate product gallery/image sliders from Slick to Swiper.js (single product detail templates, quick view) — added 3 missing detail-minimal-style1/2/3.php templates to match the other demo styles.
- Migrate image/video popups from Magnific Popup to Fancybox (Instagram gallery, popup video).
- Consolidate & minify frontend CSS/JS into fewer bundled files (base-style, elementor, side-wide, style, custom-style) for fewer HTTP requests.
- Add no_found_rows to WP_Query calls (search, related/latest products, ajax pagination, widgets) for better query performance.
- Cache repeated option/meta lookups with static vars + object cache for tax attributes.
- Add loading="lazy" to product swatch images.
- Add preconnect hints for Google Fonts.
- Load jquery-elevatezoom only on single product pages; drop unused scripts (slick, magnific-popup, accordionSlider, modernizr, hoverdir, TimeCircles, jcarousellite, mCustomScrollbar, owl.carousel, jquery-ui-tabs/slider) and their library files.
- Preload Elementor header/footer widget CSS/JS earlier to fix missing styles on first load.
- Remove layout-shift "opacity:0" preload rule that could hide page content.
Removed:
- Remove unused Elementor "Image Choose" and "Ajax Select2" custom controls (not referenced by any widget).
- Remove the theme's old built-in demo importer and legacy Customizer (Option Tree) integration, superseded by the current import flow.
- Remove unused post-like feature script and dead owl-carousel slider functions (bzotech_owl_slider, bzotech_all_slider — no markup used them).
Fix:
- Fix function bzotech_minicart_ajax()
Updated:
- Plugin Bzotech Elementor 1.1
- plugin revslider 6.7.25
Back
Top