Concreteised a Theme, some Jquery help please

Permalink 1 user found helpful
Hi There

(firstly, I know its older software but it works well for the client and their needs so I have decided to updating the theme but leave the CMS at the final C5.6)

I am having a Jquery issues having ported a bought HTML core to C5.6.

It calls a few JS plugins (backstretch / owl carousel) and I have left those calls in for the functionality. It adds in Jquery 1.12.4 and Jquery Migrate 1.4.1.

However I know C5.6 includes Jquery 1.7.2

If I leave in the Jquery 1.12.4 in the footer, and two Jquwries are loaded, all is fine when viewing. but when logged in the block edit pops don't appear.

The hardcoded carousel however doesn't work if I comment out Jquery 1.12.4 and leave it to run on the C5 jquery (which is 1.7 for this version)

What should I do? Sorry it may seem a dim question. I know for best practice I only want to load Jquery once.

I am not hot on JS, I just install and run as directed.

Staging page here:http://upgrade.librafinancialmanagement.co.uk/...

I am looking for the path of least resistance here, as the site speed will not be a problem and I need to get it live soon.

Can I simply only load the Jquery 1.12.4 when not logged in? If so how, as I have done this will CSS rules but not with script loading.

Thanks for your help in advance.

Toby

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Something like this (untried)
<?php
    $u = new User(); if ($u -> isLoggedIn()) { ?>
     <!-- <script src="/themes/Libra2/js/jquery-1.12.4.min.js"></script> -->
   <?php } else { ?>
   <script src="/themes/Libra2/js/jquery-1.12.4.min.js"></script>
   <?php } ?>
tobyme replied on at Permalink Best Answer Reply
Thanks for that weyboat - does the trick. Not elegant I guess but it works!

Thanks.