adding element checking for the booking widget before trying to add the class
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 28 Aug 2018 14:03:28 +0000 (10:03 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 28 Aug 2018 14:03:28 +0000 (10:03 -0400)
functions.php
rooms.php
style.css

index d5843fd..5a53c4e 100644 (file)
@@ -198,8 +198,8 @@ function accesspress_parallax_scripts() {
        wp_enqueue_script( 'accesspress-parallax-custom', get_template_directory_uri() . '/js/custom.js', array('jquery'), '1.0', true );
     wp_localize_script( 'accesspress-parallax-custom', 'ap_params', $slider_parameters );
 
-    wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/js/glm-dev.js', array(), '1.0.2', true );
-       wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/css/glm-dev.css', false, "1.0.2" );
+    wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/js/glm-dev.js', array(), '1.0.3', true );
+       wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/css/glm-dev.css', false, "1.0.3" );
 
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
                wp_enqueue_script( 'comment-reply' );
index 3ffb94e..08a0dcc 100644 (file)
--- a/rooms.php
+++ b/rooms.php
@@ -128,7 +128,9 @@ get_header();
         jQuery( "#rooms-tabs" ).tabs({
             active: tab
         });
-        $("[id^='bookWidget']").addClass("small-12 medium-9 large-6 grid-columns booking-widget")
+        if( $("[id^='bookWidget']") ){
+            $("[id^='bookWidget']").addClass("small-12 medium-9 large-6 grid-columns booking-widget");
+        }
     });
 </script>
 <?php get_footer();
\ No newline at end of file
index d607de0..9c14e6d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,7 +3,7 @@ Theme Name: Laurium Manor
 Theme URI: https://accesspressthemes.com/wordpress-themes/accesspress-parallax/
 Author: AccessPress Themes
 Author URI: https://accesspressthemes.com/
-Version: 1.0.2
+Version: 1.0.3
 License: GNU General Public License v3 or later
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain: accesspress-parallax