Trouble activating elastic grid
-
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]
-
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.
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?
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.
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 ) );
}
}Its not our plugin. Please make sure that you opened our portfolio plugin’s widget.php file.
Thank You.
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.
Here is the correct path to the file https://www.fantasize.nl/wp-content/plugins/gallery-portfolio/Includes/Total-Soft-Portfolio-Widget.php
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.
Please check the image which I will share here and find there that part of code.
Here is the image
Code lines found. Next step?
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.
There are 4 lines. Copy that lines into the <script> tag.
Thank You.
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.
You have done correct changes, just put the code one time. You have put twice.
- The topic ‘Trouble activating elastic grid’ is closed to new replies.