Keyword

[SOLVED] remove the word 'in' when show category is enabled

  • Lydie Polak
  • Lydie Polak's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120781 by Lydie Polak
Hi,

I am working on the frontend development of a website where K2 is implemented. On the homepage if have a K2 content module with an item in it. The category has to be styled in a certain way. With css it looks exactly how it should but there is one tiny detail: the word 'in' is isolated in the html and can't be styled!!! How and where can i override this behaviour? I have added a screenshot to clearify my problem. Hope you can help me

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

More
10 years 10 months ago #120782 by Kelsey Brookes
Replied by Kelsey Brookes on topic Re: remove the word 'in' when show category is enabled
There's two ways:

1) Language overrides
  • Go to Extensions > Language manager
  • On the left-side menu, choose 'Overrides'
  • Click the 'NEW' button to create a new override
  • On the right-side, use the search function - change the search from 'Value' to 'Constant'
  • Search for K2_IN and select it when it appears.
  • On the left side, simply delete "in" in the text field an save the new language override

This will override the default language across all instances that use K2_IN across your entire site. If that's not what you want, or it leaves and unwanted space, you should try a..

2) Template override.
Log into your site via FTP and go to:

/your-joomla-root/modules/mod_k2_content/tmpl/

Download the entire folder called 'Default'

In your site's template folder, find or create a folder called 'html', this will be in this location:

/your-joomla-root/templates/your-template/html/

Create a new folder in /html/ called 'mod_k2_content' and put the 'default' folder you downloaded in there.

/your-joomla-root/templates/your-template/html/mod_k2_content/default/

Edit default.php and look for this code (should be line 128):
Log in  or Create an account to join the conversation.

  • Lydie Polak
  • Lydie Polak's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #120783 by Lydie Polak
Thx for the help. I did it via the joomla override!

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