Keyword

K2 Content change link classes

  • Dennis
  • Dennis's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #143217 by Dennis
K2 Content change link classes was created by Dennis
Hey there,

I am using the NoNumber Modals module and the K2 Content module. One can change the classes from existing links to the class from the modal module to convert existing links into modal links. I have called the class "mymodal". It is working fine, instead when I want to convert links from the K2 Content module. For example, I have a K2 Content which just shows the image of the article. When you click on the image, the whole article should open in a modal instead of a new page. I changed the code in modules\mod_k2_content\tmpl\Default\default.php. The existing class is "moduleItemImage" and I changed it into "mymodal", but nothing happens. When I inspect the element in the browser, there is still the old class.

Thanks for the help

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143229 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Content change link classes
Did you override the module? Is your site using overrides?
A detail procedure of overriding is available here: www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Dennis
  • Dennis's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #143234 by Dennis
Replied by Dennis on topic K2 Content change link classes
I created an own template for K2 Content and overrided the default one, now it works, thank you!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143240 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Content change link classes
You 're welcome Dennis :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum