• Resolved fantasize

    (@fantasize)


    Hello, I am having issues with the elastic grid theme (#4). I cannot get it to fold out and show text description from the database. It does generate thumbnails and image name, but if you click it it doesn’t animate.

    No error messages, just no response either from the plugin.

    What am I missing?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author totalsoft

    (@totalsoft)

    Hello Dear @fantasize.

    Thank you for contacting with us and for saying us about your problem. You have too many errors on your website, if You will press F12 and will check the console part you can see there many errors. Now about the problem. The problem comes from the modernizr.custom.js file.we called that file for the popup menu but on your server it doesn’t known. You must open that modernizr.custom.js file and copy the code from that file. Then open the widget.php file find there line 847 (it is the row for calling that function) and replace it with this code <script type=”text/javascript”>PASTE CODE HERE</script>

    It will help you to fix the problem. If you can’t do it, contact with our team.

    Thank You.

    Thread Starter fantasize

    (@fantasize)

    Hello, thanks for responding!

    I found and copied the code from modernizr.custom.js as you instructed. When I go to the widget.php file (the most recent), I don’t see the line numbers as I would be used to see. How can I make those visible?

    Plugin Author totalsoft

    (@totalsoft)

    Dear @fantasize.

    You can find “../JS/modernizr.custom.js” word on your widget.php file. There are 2 lines with this words. Put the code on first one.

    Thank You.

    Thread Starter fantasize

    (@fantasize)

    Content of widget.php file as shown to me:

    <?php
    // Don’t load directly.
    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    }

    /**
    * The Events Calendar Customizer Section Class
    * Widgets
    *
    * @package The Events Calendar
    * @subpackage Customizer
    * @since 4.4
    */
    final class Tribe__Events__Customizer__Widget extends Tribe__Customizer__Section {
    /**
    * PHP 5.2 method of creating “instances” of an abstract require this
    *
    * Note: This is the only required method for a Connector to work
    *
    * @return self The dynamic instance of this Class
    */
    public static function instance() {
    return tribe( ‘tec.customizer.widget’ );
    }

    /**
    * Grab the CSS rules template
    *
    * @return string
    */
    public function get_css_template( $template ) {
    $customizer = Tribe__Customizer::instance();

    if ( ! $customizer->get_option( array( ‘widget’, ‘featured_show_images’ ) ) ) {
    $template .= ‘
    .tribe-events-list-widget .tribe-event-featured .tribe-event-image,
    .tribe-events-venue-widget .tribe-event-featured .tribe-event-image,
    .tribe-events-adv-list-widget .tribe-event-featured .tribe-event-image,
    .tribe-mini-calendar-list-wrapper .tribe-event-featured .tribe-event-image {
    display: none;
    }
    ‘;
    }

    return $template;
    }

    public function setup() {
    $this->defaults = array(
    ‘calendar_header_color’ => ‘#999’,
    ‘calendar_datebar_color’ => ‘#e0e0e0’,
    ‘featured_show_images’ => true,
    );

    $this->arguments = array(
    ‘priority’ => 70,
    ‘capability’ => ‘edit_theme_options’,
    ‘title’ => esc_html__( ‘Widgets’, ‘the-events-calendar’ ),
    ‘description’ => esc_html__( ‘Options selected here will override what was selected in the “General Theme” and “Global Elements” sections’, ‘the-events-calendar’ ),
    );
    }

    /**
    * Create the Fields/Settings for this sections
    *
    * @param WP_Customize_Section $section The WordPress section instance
    * @param WP_Customize_Manager $manager [description]
    *
    * @return void
    */
    public function register_settings( WP_Customize_Section $section, WP_Customize_Manager $manager ) {
    $customizer = Tribe__Customizer::instance();

    $manager->add_setting(
    $customizer->get_setting_name( ‘calendar_header_color’, $section ),
    array(
    ‘default’ => $this->get_default( ‘calendar_header_color’ ),
    ‘type’ => ‘option’,

    ‘sanitize_callback’ => ‘sanitize_hex_color’,
    ‘sanitize_js_callback’ => ‘maybe_hash_hex_color’,
    )
    );

    $manager->add_control(
    new WP_Customize_Color_Control(
    $manager,
    $customizer->get_setting_name( ‘calendar_header_color’, $section ),
    array(
    ‘label’ => __( ‘Calendar Header Color’, ‘the-events-calendar’ ),
    ‘section’ => $section->id,
    )
    )
    );

    $manager->add_setting(
    $customizer->get_setting_name( ‘calendar_datebar_color’, $section ),
    array(
    ‘default’ => $this->get_default( ‘calendar_datebar_color’ ),
    ‘type’ => ‘option’,

    ‘sanitize_callback’ => ‘sanitize_hex_color’,
    ‘sanitize_js_callback’ => ‘maybe_hash_hex_color’,
    )
    );

    $manager->add_control(
    new WP_Customize_Color_Control(
    $manager,
    $customizer->get_setting_name( ‘calendar_datebar_color’, $section ),
    array(
    ‘label’ => __( ‘Calendar Date Bar Color’, ‘the-events-calendar’ ),
    ‘section’ => $section->id,
    )
    )
    );

    $manager->add_setting(
    $customizer->get_setting_name( ‘featured_show_images’, $section ),
    array(
    ‘default’ => $this->get_default( ‘featured_show_images’ ),
    ‘type’ => ‘option’,
    )
    );

    $manager->add_control(
    new WP_Customize_Control(
    $manager,
    $customizer->get_setting_name( ‘featured_show_images’, $section ),
    array(
    ‘label’ => __( ‘Show Featured Event Images’ ),
    ‘section’ => $section->id,
    ‘type’ => ‘checkbox’,
    )
    )
    );

    // Introduced to make Selective Refresh have less code duplication
    $customizer->add_setting_name( $customizer->get_setting_name( ‘calendar_header_color’, $section ) );
    $customizer->add_setting_name( $customizer->get_setting_name( ‘calendar_datebar_color’, $section ) );
    $customizer->add_setting_name( $customizer->get_setting_name( ‘featured_show_images’, $section ) );
    }
    }

    Plugin Author totalsoft

    (@totalsoft)

    Its not our plugin. Please make sure that you opened our portfolio plugin’s widget.php file.

    Thank You.

    Thread Starter fantasize

    (@fantasize)

    please describe exact path? This widget.php is one of 4 I can find in root directory.

    • This reply was modified 6 years, 10 months ago by fantasize.
    Plugin Author totalsoft

    (@totalsoft)

    Thread Starter fantasize

    (@fantasize)

    Why didn’t you say so ??

    Got the aptly named file now, thank you.

    As code is now, where and what do I edit?

    • This reply was modified 6 years, 10 months ago by fantasize.
    Plugin Author totalsoft

    (@totalsoft)

    Please check the image which I will share here and find there that part of code.

    Here is the image

    Thread Starter fantasize

    (@fantasize)

    Code lines found. Next step?

    Plugin Author totalsoft

    (@totalsoft)

    Change the line with “../JS/modernizr.custom.js” part of code and put there this part
    <script type=”text/javascript”>PASTE CODE HERE</script>

    Code from the .js file.

    Thread Starter fantasize

    (@fantasize)

    Copy all of the code from the .js file? Every single line?

    • This reply was modified 6 years, 10 months ago by fantasize.
    • This reply was modified 6 years, 10 months ago by fantasize.
    Plugin Author totalsoft

    (@totalsoft)

    There are 4 lines. Copy that lines into the <script> tag.

    Thank You.

    Thread Starter fantasize

    (@fantasize)

    This is starting to frustrate me. Only four lines in modernizr.custom.js? I see a hell of a lot more code. See last response.

    • This reply was modified 6 years, 10 months ago by fantasize.
    Plugin Author totalsoft

    (@totalsoft)

    You have done correct changes, just put the code one time. You have put twice.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Trouble activating elastic grid’ is closed to new replies.