Theming: How to change or remove site title from body public?

Dear Community,

how can I change the header that shows when accessing the site by a public link? Removing (make it empty) the getName value in defaults.php leads to other issues. The file layout.base.php has the following code:

	<body id="body-public">
		<?php include('layout.noscript.warning.php'); ?>
		<?php print_unescaped($_['content']); ?>
	</body>

But where do I change the result that looks like

<a href="/index.php" title="" id="owncloud">
  <h1 class="logo-icon">my ownCloud Title</h1>
</a>

Where do I remove the my ownCloud Title from this part?

Steps to reproduce

  1. Checked all template files for body-public
  2. only found the layout.base.php
  3. not able to change the header part to only show logo (remove the getName value part)

Expected behaviour

As the core files contain layout.guest.php and layout.user.php to change the basic design I was really suprised that the site access by a public link is based on layout.base.php.

Actual behaviour

Tell us what happens instead

Server configuration

Operating system: Ubuntu 20.04

Web server: Apache/2.4.41

Database: mysql Ver 8.0.20-0ubuntu0.20.04.1

PHP version: 7.3

ownCloud version: 10.4.1.3

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: Ubuntu repository

Signing status (ownCloud 9.0 and above): No errors have been found.

The content of config/config.php: https://pastebin.com/igC1sb6g

List of activated apps:
Enabled:

  • activity: 2.5.3
  • comments: 0.3.0
  • configreport: 0.2.0
  • dav: 0.5.0
  • federatedfilesharing: 0.5.0
  • federation: 0.1.0
  • files: 1.5.2
  • files_external: 0.7.1
  • files_mediaviewer: 1.0.2
  • files_pdfviewer: 0.11.1
  • files_sharing: 0.12.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • firstrunwizard: 1.2.0
  • gallery: 16.1.1
  • market: 0.5.0
  • notifications: 0.5.0
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • theme-laag: 1.0.0
  • updatenotification: 0.2.1
  • user_ldap: 0.15.1

Are you using external storage, if yes which one: local

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

Client configuration

Browser: all (Chrome, Firefox, Edge, IE)

Operating system: Windows and macOS

Hello Scorp1337,

I think this is the part you are looking for:

2 Likes