increase the size of text on Upload.aspx
-
08-02-2021 - |
Question
Is there a possibility i can ammend some CSS or something to increase the text size on Upload.aspx? I guess not but it would be very nice if i could.
Any advice would be great, we are using SharePoint Online 365 .
Solution
Yes, there is a possibility, however, this way will change the upload forms all over your Site Collection.
You can add following Code to your masterpage:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
if (window.location.href.toLowerCase().indexOf('/_layouts/15/upload.aspx') > 0)
{
$("#element").css("font-size", "20px");
}
});
</script>
Mind to change the selector ( #element
) to the DOM-Element, which should be changed (You can find it via the Hover-Tool using Webbrowser-Dev-Tools).
Example: You want to change the font-size of "Datei auswählen":
Then the correct selector is:
$("span#UploadDescription").css("font-size", "20px");
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange