SOLVED

HERO webpart - how to stop it autosizing in smaller window

%3CLINGO-SUB%20id%3D%22lingo-sub-1812114%22%20slang%3D%22en-US%22%3EHERO%20webpart%20-%20how%20to%20stop%20it%20autosizing%20in%20smaller%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1812114%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3A)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20modern%20Sharepoint%20page%20for%20communication%20within%20the%20team.%20The%20first%20block%20that%20I%20have%20inserted%20is%202%3A1%20columns%20en%20in%20the%20bigger%20column%20(left)%20I%20have%20inserted%20a%20HERO%20webpart%20with%20links%20to%20documents%20or%20others%20sites.%20So%20far%20so%20good.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20once%20the%20page%20is%20being%20scaled%20up%20or%20viewed%20on%20smaller%20screens%20or%20the%20window%20of%20the%20browser%20is%20presented%20in%20a%20smaller%20view%20the%20HERO%20app%20from%20the%20nice%205%20pictures%20(one%20bigger%20left%20%2B%20four%20small%20and%20of%20the%20same%20size)%20to%20a%20corousel%20so%20that%20only%20one%20of%20the%20links%20is%20being%20shown%20(to%20see%20the%20others%20I%20have%20to%20click%20on%20the%20arrows).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EView%20in%20full%20window%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MagdalenaSmutek_0-1603454699169.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F228711iFB7788234B59CF4F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MagdalenaSmutek_0-1603454699169.png%22%20alt%3D%22MagdalenaSmutek_0-1603454699169.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EView%20in%20smaller%20window%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MagdalenaSmutek_1-1603454739859.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F228712i7855BCE2D3D548BB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MagdalenaSmutek_1-1603454739859.png%22%20alt%3D%22MagdalenaSmutek_1-1603454739859.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20is%20there%20an%20option%20on%20modern%20SharePoint%20site%20to%20change%20this%20behaviour%3F%20I%20have%20found%20an%20instruction%20to%20create%20an%20Image%20link%20from%20SharePoint%20site%20but%20it%20can%20only%20be%20used%20in%20the%20classic%20view%20which%20I%20cannot%20use%20(as%20on%20the%20same%20page%20I%20use%20many%20other%20modern%20webarts).%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.kalmstrom.com%2Ftips%2FSPLinksImage.htm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.kalmstrom.com%2Ftips%2FSPLinksImage.htm%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1812114%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EResponsive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1812783%22%20slang%3D%22de-DE%22%3ESubject%3A%20HERO%20webpart%20-%20how%20to%20stop%20it%20autosizing%20in%20smaller%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1812783%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F827337%22%20target%3D%22_blank%22%3E%40MagdalenaSmutek%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3EInstead%20of%20the%20Hero%20Webpart%20you%20can%20use%20the%20%22Quicklinks%22%20Webpart.%20In%20the%20edit%20pane%20on%20the%20right%20side%20you%20can%20change%20the%20button%20into%20Tile%20view%2C%20and%20also%20with%20full%20fashion%20into%20your%20pictures.%20And%20then%20you%20can%20insert%20your%20hyperlinks%20to%20click%20on%20the%20pics.%20Hope%20that%20helps.%20Greets%2C%20Eva.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1813426%22%20slang%3D%22en-US%22%3EBetreff%3A%20HERO%20webpart%20-%20how%20to%20stop%20it%20autosizing%20in%20smaller%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1813426%22%20slang%3D%22en-US%22%3E%3CP%3EHallo%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F153902%22%20target%3D%22_blank%22%3E%40Eva%20Vogel%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20tip%20and%20indeed%20it%20is%20a%20good%20solution%2C%20but%20from%20the%20creative%20point%20of%20view%20the%20quick%20links%20are%20nowhere%20near%20the%20HERO%20solution.%20See%20below%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MagdalenaSmutek_0-1603475198743.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F228790i89DB00A73C9D1223%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MagdalenaSmutek_0-1603475198743.png%22%20alt%3D%22MagdalenaSmutek_0-1603475198743.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThey%20do%20stay%20on%20top%20the%20whole%20time%20but%20the%20pictures%20are%20not%20as%20prominent%20as%20in%20the%20HERO%20web%20part.%20That's%20why%20I%20was%20thinking%20that%20there%20may%20be%20a%20trick%20to%20add%20the%20pictures%20with%20links%20the%20old%20way%20-%20by%20which%20I%20mean%3A%20by%20hand%20(and%20code).%20So%20that%20the%20layout%20of%20the%20HERO%20web%20part%20will%20be%20the%20same%20but%20the%20picture%20could%20get%20smaller%20as%20the%20page%20is%20zoomed%20in%20or%20only%20partially%20showed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20there%20is%20no%20other%20possibility%20we%20will%20probably%20go%20with%20the%20quick%20links%20but%20maybe%2C%20just%20maybe%20there%20is%20an%20option%20to%20overrule%20the%20settings%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello:)

 

I have created a modern Sharepoint page for communication within the team. The first block that I have inserted is 2:1 columns en in the bigger column (left) I have inserted a HERO webpart with links to documents or others sites. So far so good.

 

But once the page is being scaled up or viewed on smaller screens or the window of the browser is presented in a smaller view the HERO app from the nice 5 pictures (one bigger left + four small and of the same size) to a corousel so that only one of the links is being shown (to see the others I have to click on the arrows). 

 

View in full window:

MagdalenaSmutek_0-1603454699169.png

View in smaller window:

MagdalenaSmutek_1-1603454739859.png

 

Now, is there an option on modern SharePoint site to change this behaviour? I have found an instruction to create an Image link from SharePoint site but it can only be used in the classic view which I cannot use (as on the same page I use many other modern webarts).

https://www.kalmstrom.com/tips/SPLinksImage.htm

 

Thank you :)

4 Replies

Hello @MagdalenaSmutek ,

Instead of the Hero Webpart you can use the "Quicklinks" Webpart. In the edit pane on the right side you can change the button into Tile view, and also with full mode into your pictures. And then you can insert your hyperlinks to klick on the pics. Hope that helps. Greets, Eva.

 

Hallo @Eva Vogel ,

 

Thank you for your tip and indeed it is a good solution, but from the creative point of view the quick links are nowhere near the HERO solution. See below:

MagdalenaSmutek_0-1603475198743.png

They do stay on top the whole time but the pictures are not as prominent as in the HERO web part. That's why I was thinking that there may be a trick to add the pictures with links the old way - by which I mean: by hand (and code). So that the layout of the HERO web part will be the same but the picture could get smaller as the page is zoomed in or only partially showed.

 

If there is no other possibility we will probably go with the quick links but maybe, just maybe there is an option to overrule the settings?

best response confirmed by MagdalenaSmutek (Occasional Contributor)
Solution

Hi @MagdalenaSmutek, the Hero Webpart is coded with a grid behind, but the classic code editor like SharePoint 2013 will not work, that correct. You can search for coding tips on github, to manipulate certain layouts in webparts, but you have to have developers permission to to that.

 

Another idea for you may be the "higlighted content webpart". You can show only your pictures in a certain (picture AND files) library, and thenspecify which pictures will be shown there, in which layout. But the responsive layout -i think it is part of the modern coding structure and you cannot manipulate it like media size, monitor size etc., as in the good old html5 times :)

 

Does that help? I personally like the new modern and very grid responsive design and it is not as static as in SharePoint 2013. Getting accustomed to the new grid styles in different devices is sometimes kind of "agile" and really not static at all, but it helps to read every text and see every picture and every monitor. Another kind of adoption challenge in my eyes... 

 

Give a Like if my ideas can help on your issues.

 

Kind regards, Eva.

Hi @Eva Vogel,

 

Thank you for you tips - I have now dug deeper in the Highlighted content web part and will be using it although for other purposes. In this case I also think the HERO or quicklinks are the best solutions. Also as they respond to the changes in layout. I see this as a plus, but not everybody thought that way. 

 

I do not have the developers permissions to change the code behind the HERO web part, but maybe it is a good thing. This is after all only an internal page, not a page that is made for a customer etc. 

 

Thanks for your advice and time!