Keyword

Hiding the Author in a User Blog Article

More
4 months 1 week ago #172718 by Meg
Meg created the topic: Hiding the Author in a User Blog Article
Hello,

This might be a silly question.
I'm using the K2 User blog.

Is there a way to hide the author's name in the title bar if I use this feature?
IE: in the tab at the top of my website, if I'm on the blog page it says "Author - NameOfWebsite" And I'd rather it just have the name of the website.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
4 months 1 week ago #172719 by Fotis
Fotis replied the topic: Hiding the Author in a User Blog Article
Since this is kinda an edge case, what you can do is add a piece of PHP at the top of user.php template override in K2 and overwrite the page title.

Something like:
<?php

// place the following after: defined('_JEXEC') or die;
$document = JFactory::getDocument();
$document->setTitle('NameOfWebsite');

You might wanna take a look at getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates on how to work with template overrides in K2.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum