Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter petyrveliki

    (@petyrveliki)

    As most of the time in my life – I fixed it myself !!!

    I saw that the webpage gives error that jQuery.vegas is not a function. So I modified the frontend/index.php file from the plugin and changed the last <script> tag from this:

    		<script>
    			jQuery(document).ready(function() {
    				jQuery.vegas({src:'<?php echo $dazz_cs_design['dazz_cs_bg_img'] ?>'});
    			});
    		</script>

    to this:

    		<script>
    			jQuery(document).ready(function() {
    				if (jQuery.vegas) {	
    					jQuery.vegas({src:'<?php echo $dazz_cs_design['dazz_cs_bg_img'] ?>'});
    				} else {
    					jQuery('body').append('<style type="text/css">html { height: 100% } body { background: url("<?php echo $dazz_cs_design['dazz_cs_bg_img'] ?>") no-repeat center center !important; background-size: cover !important; }</style>');
    				}
    			});
    		</script>

    In other words – check if that vegas plugin/function/property/whatever-it-is is there, and if not – just apply some CSS.

    Hope this helps someone else ??

Viewing 1 replies (of 1 total)