How to remove "Website URL: xyz.com" from user profile page
- GK User
- Sat Oct 17, 2015 8:01 pm
My requirement is to hide the users websites from the user profile page. When I don't enter the website while creating the K2 user, it still displays the string "Website URL:"
How do I get rid of the whole string?

I have searched many php files but I dont know what is generating the code to display the string.
Any css workaround will also be fine.
Please help.
How do I get rid of the whole string?

I have searched many php files but I dont know what is generating the code to display the string.
Any css workaround will also be fine.
Please help.
-
- Fresh Boarder
- GK User
- Sat Oct 17, 2015 8:33 pm
Ok I got it.
And just in case if someone else needs it.
We have to delete line no: 41 in user.php in the folder
templates>gk_writer>html>com_k2>templates>default
And just in case if someone else needs it.
We have to delete line no: 41 in user.php in the folder
templates>gk_writer>html>com_k2>templates>default
-
- Fresh Boarder
- teitbite
- Tue Oct 20, 2015 9:40 am
Hi
I would suggest to replace this line, which looks like this now:
to
I would suggest to replace this line, which looks like this now:
- Code: Select all
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>
to
- Code: Select all
<?php if(!empy($this->user->profile->url)): ?>
<?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>
<?php endif; ?>
-
- Moderator
3 posts
• Page 1 of 1