Custom HTML at the Top of "<body>" #1695
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added setCustomTopBodyElement allowing to define custom HTML to be added at the top of the "" tag.
This is very useful to add a custom HTML header, e. g. also a logo at the top of the page.
I know this would in general be possible with
WIFI_MANAGER_OVERRIDE_STRINGS
and copying the wholewm_strings_en.h
file, however, if the only goal is to add a single line of HTML code at the top of the page this seems like a bad idea:Whenever something would get added in that file, these changes would need to be copied over manually to the custom file again.
Having the option to just "inject" and additional HTML code at the top of the body tag (similar as it is already possible to inject something at the bottom of the "head" tag) seems a much better option.