Keyword

[Solved] Disable article image popup

  • YODAstudio
  • YODAstudio's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 2 months ago - 7 years 1 month ago #164333 by YODAstudio
[Solved] Disable article image popup was created by YODAstudio
Hello everybody!

Is it possible to disable article main image link in the article page? I don't need to have a modal popup or something else, main image just should stay there with no link on top of the article.

Thanks.
Last edit: 7 years 1 month ago by YODAstudio.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #164355 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disable article image popup
Hello,

You will need to override the item.php file and remove the <a> tag in the .itemImageBlock section.
Be careful not to remove its contents (the spans and the img tag).

More on overrides can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

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

  • YODAstudio
  • YODAstudio's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 month ago #164484 by YODAstudio
Replied by YODAstudio on topic Disable article image popup
It works, thanks a lot.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #164496 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disable article image popup
You 're welcome :)

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