CHRISTMAS SALE! 20% DISCOUNT!! Coupon code:christmas20 Enjoy!!!

Error widget counter

Home Forums Suffice Error widget counter

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

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

    l.lannik
    Participant

    Hi.

    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

    <?php
    /**
     * 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     http://docs.themegrill.com/suffice-toolkit/template-structure/
     * @author  ThemeGrill
     * @package SufficeToolkit/Templates
     * @version 1.0.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    $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>
    	</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>
    	</div>
    </div>
    
    #1374855

    Ashish
    Moderator

    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. 🙂

    Regards,
    ThemeGrill Support Team.

    #1374858

    l.lannik
    Participant
    This reply has been marked as private.
    #1374861

    Ashish
    Moderator

    Hi,
    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.
    https://github.com/themegrill/suffice-toolkit

    includes/widgets/class-suffice-widget-counter.php
    templates/content-widget-counter.php

    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: https://wordpress.org/support/theme/suffice/reviews/?filter=5

    Thanks.

    #1374865

    l.lannik
    Participant

    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.

    #1375095

    Ashish
    Moderator

    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.

    Thanks.

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

You must be logged in to reply to this topic.