Skip to content

Add image to Navigation block #30101

Closed
Closed

Description

@paaljoachim

What problem does this address?

I am not able to insert image into Nav block.

What is your proposed solution?

Being able to insert image into navigation block. To create something like this:

Nav-with-image

It would be nice to be able to add a logo into the navigation block. Lets give permission to adding an Image block.

Screen Shot 2021-03-22 at 18 57 03

Screen Shot 2021-03-22 at 18 57 24

It would also be nice to be able to insert a Reusable block into the navigation bar.

Activity

  1. added
    [Block] Navigation
    [Type] Enhancement
    on Mar 22, 2021
  2. jasmussen commented on Mar 23, 2021

    @jasmussen
    Contributor

    Nice one.

    Instead of allowing the Image block, could we allow the Site Logo block? That seems more appropriate, and less prone to side-effects.

  3. added
    [Block] Site Logo
    on Mar 23, 2021
  4. paaljoachim commented on Mar 23, 2021

    @paaljoachim
    ContributorAuthor

    One might not want the Site Logo block but another image though. Perhaps one wants two images inside the navigation. Perhaps one wants to use icons beside each link. Adding the Image block gives the freedom to the user to decide how and where they want to add an image or images to the menu.

    An example of using icons.
    Screen Shot 2021-03-23 at 09 37 15

    One could then add the icons to the Media Library. Then use Add Image to add each icon to the Navigation. Then adjust the padding for each menu item. I assume that padding will be available for each menu item. That is instead of having to add the Spacer block between each menu item.

  5. jasmussen commented on Mar 23, 2021

    @jasmussen
    Contributor

    In the case of both an image inserted as a direct child of the navigation block, it's currently blocked on #29036.

    The use case for icons makes sense, but technically you can already do that:

    Screenshot 2021-03-23 at 09 45 17

  6. removed
    [Block] Site Logo
    on Jan 5, 2022
  7. scruffian commented on Nov 20, 2025

    @scruffian
    Contributor

    This is now possible!

  8. paaljoachim commented on Nov 20, 2025

    @paaljoachim
    ContributorAuthor

    Hey @scruffian Ben

    Thanks!

    btw
    I just tested with adding an image into the Navigation. I noticed that width and height controls is missing. Making it more difficult to control the size of the image inside the Nav. Adding blocks into the Nav should contain the same controls as using these outside the Nav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Navigation[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions