Drupal - Change site logo for specific content type and page

Do not know weather this method fulfill the requirements but you can take a look. As Drupal 8 creates a block for logo. You can create separate block for each content type and depends on visibility condition you can show.

enter image description here


Create a dynamic View Block and use that as your logo block.

  1. Add image field to your content type
  2. Create a View Block in /admin/structure/views/add

enter image description here

  1. In View, for Fields, add your Image

  2. Click on Advanced (far right), for Contextual Filter add ID .Provide default value, Content ID from URL. (Note: The view preview will go blank, which is normal, since the View edit page does not have a Content ID.)

enter image description here

  1. Go to blocks (/admin/structure/block), and add the View block to a region. For Visibility settings select the content type that you want this to appear in.

enter image description here


create multiple custom blocks with logo image and display with page the page you need.

Tags:

Theming

8