Error widget counter

Home Forums Suffice Error widget counter

This topic contains 5 replies, has 2 voices, and was last updated by  Ashish 1 week, 3 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #1374742



    I receive a bug in the content-widget-counter.php at line 38

    PHP Notice: Undefined variable: custom_text_style in wp-content/plugins/suffice-toolkit/templates/content-widget-counter.php on line 38

     * The template for displaying counter widget entries
     * This template can be overridden by copying it to yourtheme/suffice-toolkit/content-widget-counter.php.
     * HOWEVER, on occasion SufficeToolkit will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     * @see
     * @author  ThemeGrill
     * @package SufficeToolkit/Templates
     * @version 1.0.0
    if ( ! defined( 'ABSPATH' ) ) {
    $title      = isset( $instance['counter-title'] ) ? $instance['counter-title'] : '';
    $icon       = isset( $instance['icon'] ) ? $instance['icon'] : '';
    $number     = isset( $instance['number'] ) ? $instance['number'] : '';
    $prefix     = isset( $instance['prefix'] ) ? $instance['prefix'] : '';
    $suffix     = isset( $instance['suffix'] ) ? $instance['suffix'] : '';
    $style      = isset( $instance['style'] ) ? $instance['style'] : 'counter-style-hexagon';
    <div class="counter-item <?php echo esc_attr( $style ); ?>">
    	<div class="counter-icon">
    		<div class="counter-icon-inner">
    			<i class="fa <?php echo esc_attr( $icon ); ?>"></i>
    	</div> <!-- end counter-icon -->
    	<div class="counter-info">
    		<div class="counter-number" data-from="0" data-to="<?php echo esc_attr( $number ); ?>" data-prefix="<?php echo esc_attr( $prefix ); ?>" data-suffix="<?php echo esc_attr( $suffix ); ?>" <?php echo esc_attr( $custom_text_style ); ?>><?php echo esc_attr( $number ); ?></div>
    		<div class="counter-title"><?php echo esc_attr( $title ); ?></div>


    Hi l.lannik
    It seems it’s an issue with our toolkit plugin. We’ll fix it by adding missing options in the ST: Counter widget. You can check after we release an update of the plugin. I guess we’ll be releasing it soon.

    And, thanks for letting us know about this issue. 🙂

    ThemeGrill Support Team.

    • This reply was modified 1 week, 6 days ago by  Ashish.

    This reply has been marked as private.


    You can go to our GitHub repository and copy the code of the following files from there and replace to the respective files of Suffice ToolKit plugin of your site.


    I hope it resolves the error on your site. Also, if you get an issue later, feel free to ask again! I guess you liked our theme, if so, you can help us by providing a review us here:


    • This reply was modified 1 week, 6 days ago by  Ashish.
    • This reply was modified 1 week, 6 days ago by  Ashish.


    Thanks for your answer. It works very well: D

    Immediately I am asking for another question. Is it possible to combine read more button with a polylang plugin.
    My point is that the “read more” button could be translated depending on the language.



    Hi, @l.lannik
    Glad to know it worked for you. 🙂
    Yes, Read more text is translation ready. You can use show it in multiple languages using Polylang plugin.


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.