• Resolved itsjonesyy

    (@itsjonesyy)


    Hello,

    I am trialling your plugin and I am wondering if it is possible to remove the specific tooltip on the ‘reset all’ button that the users can click in the container.

    The tooltip is currently saying ‘Remove reset all from results’ which doesn’t make much sense so it would be nice to know if this can be removed. Or maybe you could tweak it to just say ‘Reset All’ as this makes sense.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hello itsjonesyy.

    Thank you for using Filter Everything and for your feedback. You are absolutely right, it is extra and unused title. I will remove it in the next plugin update.

    But for the moment you can create in your theme’s folder new dir called ‘filters’ and put there updated ‘chips.php’ file with the next code:

    <?php
    /**
     * The Template for displaying filter selected terms.
     *
     * This template can be overridden by copying it to yourtheme/filter/chips.php.
     *
     * $chips - array, with the Filter Set parameters
     *
     * @see https://filtereverything.pro/resources/templates-overriding/
     */
    
    if ( ! defined('WPINC') ) {
        wp_die();
    }
    
    ?>
    <ul class="wpc-filter-chips-list wpc-filter-chips-<?php echo esc_attr( $setid ); ?>" data-set="<?php echo esc_attr( $setid ); ?>">
    <?php if( $chips ) : ?>
        <?php foreach( $chips as $chip ): ?>
        <li class="wpc-filter-chip <?php echo esc_attr( $chip['class'] ); ?>">
            <a href="<?php echo esc_url( $chip['link'] ); ?>" title="<?php if( $chip['name'] !== esc_html__('Reset all', 'filter-everything') ){ echo esc_attr( sprintf( __('Remove %s from results', 'filter-everything'), $chip['name'] ) ); } ?>">
                <span class="wpc-chip-content">
                    <span class="wpc-filter-chip-name"><?php echo esc_html( $chip['name'] ); ?></span>
                    <span class="wpc-chip-remove-icon">×</span></a>
                </span>
        </li>
        <?php endforeach; ?>
    <?php endif; ?>
    </ul>

    Or you can take it from here – https://gist.github.com/wpserve/45c57028374116b1e13fa0ae0e6dd9ea

    • This reply was modified 3 years, 4 months ago by stepasyuk.
    • This reply was modified 3 years, 4 months ago by stepasyuk.
    • This reply was modified 3 years, 4 months ago by stepasyuk.
    • This reply was modified 3 years, 4 months ago by stepasyuk.
Viewing 1 replies (of 1 total)
  • The topic ‘Post container selected terms – ‘reset all’ tooltip’ is closed to new replies.