0

Anyone know how can I put the box in image in the navigation area without using SPFx just CSS only.

enter image description here

1
  • You cannot inject css in modern pages without spfx. Also, custom css/DOM manipulations are not recommended by Microsoft. Aug 4 at 2:47

3 Answers 3

0

You cannot inject custom CSS in modern pages without using SPFx.

You can use SPFx application customizer to inject the custom CSS in SharePoint online modern pages. Check more information at:

  1. How can I include the same JS and CSS files on multiple SharePoint Modern Page?

Note: DOM manipulation & CSS customizations are not recommended by Microsoft and some of your customization may break if Microsoft changes HTML element id/classes in new release updates.

0

As far as I know, custom css are not supported by sharepoint modern page any more. We can only use spfx to custom the modern page. Please refer to following document

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-customize-sites

As a wrokaround, You can deploy react-script-editor to your tenant so you could the webpart to this page, then you could add custom CSS/JavaScript to this page.

0

i already did it. I dont need spfx. i just copy the div and replace something on it

1
  • Can you explain the solution in detail? Are you doing this for single page or all pages? How you changed HTML on modern page, which webpart you used? yesterday

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.