Keyword

Modal: CSS & JS Loading Problem

  • MRPRO03
  • MRPRO03's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago - 10 years 8 months ago #124164 by MRPRO03
Modal: CSS & JS Loading Problem was created by MRPRO03
Template Name: Family Center
Exact Joomla version: 2.5.17
Joomla URL: pharmafactz.com/

If you scroll down the Home page, you will find a box with labelled PHARMAFACTZ, normally, when you click on the image, it comes out as a Popup but it instead, the image is displayed on a new page.

Similarly, when you click on Gallery (pharmafactz.com/index.php/gallery) on the top menu, you see a selection of images, they should also be Popups but link to a new page also.

But when you click on a single item, for example (pharmafactz.com/index.php/general-principles/miscellaneous/item/504-top-10-best-ways-to-remove-phlegm-from-your-throat), and click on the cover image, the popup works.

I disabled all my plugins and all modules one by one by to see what is causing it but that did not work. Is there any other issue that may be causing this?

I did notice however, when the menu item is set to K2 -> Item, they load on that page but when it is set to K2 -> Categories, it does not load.

Thanks

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124165 by Yiota
Replied by Yiota on topic Re: Modal: CSS & JS Loading Problem
This is caused because of javascript conflicts. You are loading two instances of the jQuery library. You only need one copy.

You now load one local copy of pharmafactz.com/media/k2/assets/js/jquery-1.10.2.min.js and a remote copy of ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js

Disable the latter and check again.

Please Log in or Create an account to join the conversation.

  • MRPRO03
  • MRPRO03's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #124166 by MRPRO03
Replied by MRPRO03 on topic Re: Modal: CSS & JS Loading Problem
Hi,

I do not know how to remove the google code, I have checked the parameters and they are both loaded to the local copy, so I've no idea how to remove the google code.

Thanks

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124167 by Yiota
Replied by Yiota on topic Re: Modal: CSS & JS Loading Problem
Check in the K2 parameters, your template parameters or another extension that could load this remote copy.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #124168 by matt
Replied by matt on topic Re: Modal: CSS & JS Loading Problem
I too am having issues with this. I can not get a modal to work. In this case it is a lightbox for an extraField URL. it should be opening in a lightbox when clicked, but instead it is opening up in the current window. As far as I can see, there is no multiple copies of jquery loading. I have uninstlled all modules and still the modal will not work.

The URL: www.peoplewhocare.org/news-media

Please Log in or Create an account to join the conversation.

  • MRPRO03
  • MRPRO03's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #124169 by MRPRO03
Replied by MRPRO03 on topic Re: Modal: CSS & JS Loading Problem

Yiota Ziaggou wrote: Check in the K2 parameters, your template parameters or another extension that could load this remote copy.


Hi,

There is now only one instance of jquery but the problem is still happening.

Thanks

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124170 by Yiota
Replied by Yiota on topic Re: Modal: CSS & JS Loading Problem
@MRPRO03

Make sure you have this JHtml::_('behavior.modal'); on top in the override of the category_item.php file.

@matt

Could you tell me where should I see the faulty extra field url in your page?

Thank you.

Please Log in or Create an account to join the conversation.

  • MRPRO03
  • MRPRO03's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #124171 by MRPRO03
Replied by MRPRO03 on topic Re: Modal: CSS & JS Loading Problem

Yiota Ziaggou wrote: @MRPRO03
Make sure you have this JHtml::_('behavior.modal'); on top in the override of the category_item.php file.


Hi,

Thats done the job perfectly!

Thank You !!!

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124172 by Yiota
Replied by Yiota on topic Re: Modal: CSS & JS Loading Problem
You are welcome @MRPRO03!

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #124173 by matt
Replied by matt on topic Re: Modal: CSS & JS Loading Problem
HI, sorry for the late replay. got stuck in a project. It is the

Read at: Morning Journal

link. the link is showing as class:"modal" but it keeps opening in a new page.

thanks for looking at this!!!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum