Keyword

[SOLVED] Where to turn off adding # to tags in K2 articles?

  • Chad Criswell
  • Chad Criswell's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 8 months ago #156585 by Chad Criswell
When I add a tag to an article in K2 I am not adding the hashtag to them, yet when the article is displayed in the front end the system is adding the #. How do I turn this feature off?

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
7 years 8 months ago #156588 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Where to turn off adding # to tags in K2 articles?
Hi Chad,

It is added using CSS, look into your k2.css, and find this rule definition:
div.latestItemTagsBlock ul.latestItemTags li a::before {
content : "#";
}

You can override this rule in your custom.css file, if your template has this feature.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #156598 by Krikor Boghossian
Replied by Krikor Boghossian on topic Where to turn off adding # to tags in K2 articles?
Mohamed is right, as always :)

You can also move the components/com_k2/css/k2.css file into your template's /css folder and remove this CSS rule.

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

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

  • Chad Criswell
  • Chad Criswell's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 8 months ago - 7 years 8 months ago #156777 by Chad Criswell
Replied by Chad Criswell on topic Where to turn off adding # to tags in K2 articles?
I was banging my head into the wall on this trying to figure out why it wasn't working after I copied the css file, moved the copy to /templates/rt_dominion/css/k2.css and removed that line from the file.

Finally I realized that the tag that had been referenced in the above replies is not the one that has to be changed in my particular case. There is also one like this that has to be changed:

div.catItemTagsBlock ul.catItemTags li a:before {content:"#";}

If you want to remove all of the # tags from your K2 tags you need to remove both lines.
Last edit: 7 years 8 months ago by Chad Criswell.

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


Powered by Kunena Forum