Keyword

Hiding the Author in a User Blog Article

More
4 years 8 months ago #172718 by Meg
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.

More
4 years 8 months ago #172719 by JoomlaWorks
Replied by JoomlaWorks on 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.

Fotis / 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