Skip to content

Lightboxes breaking wp_head function #98

@alonsofedz

Description

@alonsofedz

The code that generates the lightboxes is being loaded into the wp_head hook, but it stops it from processing correctly and may cause some Themes to break. A more graceful solution, that fixes the issue is loading them in the footer. The three files to be modified are:

game-on.php
128: add_action( 'wp_footer', 'go_stats_overlay' );

types/stores/includes/lightbox/frontend-lightbox.php
401: add_action( 'wp_footer', 'go_frontend_lightbox_html' );

types/types.php
1362: add_action( 'wp_footer', 'go_create_help_video_lb' );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions