Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Woo is removing input field from notices/error.php?

$
0
0

Replies: 0

I’m trying to add an input field for an alert as CSS only way of dismissing an alert. It seems as if Woocommerce is removing any inputs from /notices/error.php\ and is not rendering in the DOM.

php
<!-- =====================
    Alert - Error
    ===================== -->
<?php foreach ( $notices as $notice ) : ?>
    <div class="alert alert-error">

        <!-- Why is woo removing this? -->
        <input type="checkbox" class="alert-toggle" id="<?php echo $id; ?>" />

        <!-- Container -->
        <div class="alert-container">
            <!-- Icon -->
            <i class="icon alert-icon"></i>
            <!-- Text -->
            <div class="alert-text">
                <?php echo wc_get_notice_data_attr( $notice ); ?>
                <?php echo wc_kses_notice( $notice['notice'] ); ?>
            </div>
            <label for="<?php echo $id; ?>" class="alert-close" aria-label="Close"></label>
        </div><!-- /Container -->
    </div><!-- /Alert -->
<?php endforeach; ?>

Any ideas?


Viewing all articles
Browse latest Browse all 59525

Trending Articles