• Hello.
    I wanted a back to top button in my footer menu, so I did the following :
    1. I have a header widget area in my theme so I added a HTML widget to it and inserted this code : <div id="top"></div>
    2. I then added this custom menu item to my footer menu : #top
    The scrolling worked, but it was not smooth so I tried adding this code to the widget, however it displayed as plain text in the header :

    html {
      scroll-behavior: smooth;
    }

    I tried adding several different codes, but they all ended this way.
    Does anybody have an idea why this’s happening or some code that work ?
    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘HTML widget showing as plain text’ is closed to new replies.