jquery.min.js to be added?

Posted in: Newspaper
Post count: 228

I want to add the <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script&gt;

how can I add it?

Do I have to add it in Custom Code -> Custom HTML ?

Post count: 228

I want to use the $('.coloured-box .vc_column-inner .wpb_wrapper').eq(new Date().getDay()).addClass('today');

but is not displayed if I ll not added the <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script>

Post count: 18283

Hello !

Please try and insert it here: https://www.screencast.com/t/hOO7Zxtr2d

Let us know the result. Also please make sure that your copied code is correct.

Thank you !

Post count: 228

On https://www.screencast.com/t/hOO7Zxtr2d i have added the $('.coloured-box .vc_column-inner .wpb_wrapper').eq(new Date().getDay()).addClass('today');

and it is working only if i will add the <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> on Custom HTML field.

In that case are not working other js files – pages of the site.

Post count: 228

Can I add the <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script>

only in home page?

Post count: 18283

Hello !

In order to add it only on your homepage this will require custom work coding which is not covered by the support team. Unfortunately each layout is different so I can’t say where to insert the code.

For this I recommend you to hire a freelancer.

Thank you !

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.