Nextcloud version (13.0.2snap1)
Operating system and version (Ubuntu 16.04)
Apache or nginx version (Apache 2.4.18-2ubuntu3)
PHP version (7.0+35ubuntu6)
I share the link to the file
How to remove this sign “shared by NAME”, see attached picture
Nextcloud version (13.0.2snap1)
Operating system and version (Ubuntu 16.04)
Apache or nginx version (Apache 2.4.18-2ubuntu3)
PHP version (7.0+35ubuntu6)
I share the link to the file
How to remove this sign “shared by NAME”, see attached picture
Idea: Modify template file by changing CSS code.
Make a copy of nextcloud theme.
You can use any browser to inspect html code and find target element.
Change respective css code.
For details see:
https://docs.nextcloud.com/server/13/developer_manual/core/theming.html
Theming + Custom CSS:
#header .header-shared-by {
display: none;
}
Be aware that both the username (data-owner
) and the display name (data-owner-display-name
) of the user who shares the file are in the source code of the page!
EDIT: And we have to say a big Thanks! to @juliushaertl for this great Custom CSS app! Hopefully we can use it with Nextcloud 14 too.
@anon99252149, ok thank.
I need another advice from you.
How to remove this sigh
This is link for upload only folder.
Follofing this manual I made a copy of theme. But I can’t find a file where are situated this source code
https://i.imgur.com/ztCp4Fl.png
Too easy change one file - apps\files_sharing\lib\Controller\ShareController.php line 455
From -
$response->setHeaderDetails($this->l10n->t(‘shared by %s’, [$shareTmpl[‘displayName’]]));
To -
$response->setHeaderDetails($this->l10n->t(‘shared by %s’, Anonymous));
Theming + Custom CSS:
#header .header-shared-by {
display: none;
}
Where can I find this code? In themes -> example -> css I don’t have a css file.
I know I can replace user name to anonymous but I don’t want it to display “shared by anonymous”.
I downloaded it but where should I place it?
I downloaded it in the from the apps store in the cloud, thx!