The codes of the scrollbar in WordPress

The codes of the scrollbar in WordPress

There are 2 ways to style the scroll bar in WordPress

The first way;

By customizing the theme of WordPress

Image

 

Then,

Image

Choose

Image

Put your codes;

Image

Note: here, don’t put (<style> </style>)

 

The codes for copying

 

::-webkit-scrollbar{

width: 13px;

background: black;

}

::-webkit-scrollbar-thumb{

background-color: red;

border-radius: 20px;

height:370px;

}

::-webkit-scrollbar-thumb:hover{

background-color: black;

border-radius: 20px;

height:370px;

}

::-webkit-scrollbar-track{

background: pink;

margin: 50px;

}

::-webkit-scrollbar-track:hover{

background: silver;

}

I put those colors only for learning, so, please, change the colors as you wish

 

The second way;

By using Elementor;

Image

 

Then,

Image

choose html

Put your codes;

Image

The codes for copying

<style>

::-webkit-scrollbar{

width: 13px;

background: black;

}

::-webkit-scrollbar-thumb{

background-color: red;

border-radius: 20px;

height:370px;

}

::-webkit-scrollbar-thumb:hover{

background-color: black;

border-radius: 20px;

height:370px;

}

::-webkit-scrollbar-track{

background: pink;

margin: 50px;

}

::-webkit-scrollbar-track:hover{

background: silver;

}

</style>

 

Thank you for your time to read this post

 

Shopping Cart

You cannot copy content of this page

Thank you 😊

There was an error while trying to send your request. Please try again.

Juliet Rose will use the information you provide on this form to be in touch with you and to provide updates and marketing.