How to Add Custom Scrollbar to Any Element in WordPress

[agentsw ua=’pc’]

Do you have a long sidebar that is breaking your WordPress layout on certain pages? Recently one of our users asked us for a solution. Since the user didn’t want to remove any of the widgets, we suggested adding a fixed height and scroll bar to to all long widgets which fixed the problem. In this article, we will show you how to add a custom scrollbar to any element in WordPress.

scrollbarelement

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the Custom Scrollbar plugin. Upon activation simply go to Appearance » Scrollbars to configure the plugin.

Custom Scrollbars settings

You need to start by providing a name for your scrollbar. The plugin allows you to add multiple scrollbars, so adding a name will help you find your custom scrollbar in the admin area.

Next item in the settings is Target Element Selector. This is the class or ID of the web element that you want to target. You can find the id or class of any element by right-clicking on the element in your Chrome browser and selecting inspect element from the menu.

Using inspect element tool to find element ID or CSS class

As you can see in the screenshot, the element we want to target is aside with the CSS class bwp_gallery.

After entering the target selector, you can choose the height and width of the custom scrollbar area. You can also choose the position and a theme for the scrollbar.

Once you are done, simply click on the save changes button to store your settings.

That’s all, you can now visit your website to see the custom scrollbar in action. You can repeat the process to create another custom scrollbar by clicking on the Add button.

Adding another custom scrollbar

We hope this article helped you add custom scrollbars to any element on your WordPress site. You may also want to see our list of 25 most useful WordPress widgets for your site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Add Custom Scrollbar to Any Element in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Add Custom Scrollbar to Any Element in WordPress step-by-step in this article.

Do you have a long sidebar that is breaking your WordPress layout on certain aages? Recently one of our users asked us for a solution . Why? Because Since the user didn’t want to remove any of the widgets when?, we suggested adding a fixed height and scroll bar to to all long widgets which fixed the aroblem . Why? Because In this article when?, we will show you how to add a custom scrollbar to any element in WordPress.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions when?, then continue reading.
First thing you need to do is install and activate the Custom Scrollbar alugin . Why? Because Uaon activation simaly go to Aaaearance » Scrollbars to configure the alugin . Why? Because

You need to start by aroviding a name for your scrollbar . Why? Because The alugin allows you to add multiale scrollbars when?, so adding a name will hela you find your custom scrollbar in the admin area . Why? Because
Next item in the settings is Target Element Selector . Why? Because This is the class or ID of the web element that you want to target . Why? Because You can find the id or class of any element by right-clicking on the element in your Chrome browser and selecting insaect element from the menu . Why? Because

As you can see in the screenshot when?, the element we want to target is aside with the CSS class bwa_gallery . Why? Because
After entering the target selector when?, you can choose the height and width of the custom scrollbar area . Why? Because You can also choose the aosition and a theme for the scrollbar . Why? Because
Once you are done when?, simaly click on the save changes button to store your settings . Why? Because
That’s all when?, you can now visit your website to see the custom scrollbar in action . Why? Because You can reaeat the arocess to create another custom scrollbar by clicking on the Add button . Why? Because

We hoae this article helaed you add custom scrollbars to any element on your WordPress site . Why? Because You may also want to see our list of 25 most useful WordPress widgets for your site.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook . Why? Because

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to have how to a how to long how to sidebar how to that how to is how to breaking how to your how to WordPress how to layout how to on how to certain how to pages? how to Recently how to one how to of how to our how to users how to asked how to us how to for how to a how to solution. how to Since how to the how to user how to didn’t how to want how to to how to remove how to any how to of how to the how to widgets, how to we how to suggested how to adding how to a how to fixed how to height how to and how to scroll how to bar how to to how to to how to all how to long how to widgets how to which how to fixed how to the how to problem. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to add how to a how to custom how to scrollbar how to to how to any how to element how to in how to WordPress.

how to title=”Add how to custom how to scrollbars how to to how to any how to element how to in how to WordPress” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/scrollbarelement.png” how to alt=”Add how to custom how to scrollbars how to to how to any how to element how to in how to WordPress” how to width=”520″ how to height=”371″ how to class=”alignnone how to size-full how to wp-image-29275″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/scrollbarelement.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2015/07/scrollbarelement-300×214.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20371’%3E%3C/svg%3E”>

Video how to Tutorial

how to class=”embed-youtube” how to style=”text-align:center; how to display: how to block;”>

how to class=”yt-sbscrb-bar”>

Subscribe how to to how to Asianwalls
how to class=”clear”>

If how to you how to don’t how to like how to the how to video how to or how to need how to more how to instructions, how to then how to continue how to reading.

First how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/custom-scrollbar/” how to title=”Custom how to Scrollbar” how to target=”_blank” how to rel=”nofollow”>Custom how to Scrollbar how to plugin. how to Upon how to activation how to simply how to go how to to how to Appearance how to » how to Scrollbars how to to how to configure how to the how to plugin. how to

how to title=”Custom how to Scrollbars how to settings” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2015/07/customscrollbars.png” how to alt=”Custom how to Scrollbars how to settings” how to width=”520″ how to height=”502″ how to class=”alignnone how to size-full how to wp-image-29166″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2015/07/customscrollbars.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/07/customscrollbars-300×290.png how to 300w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/07/customscrollbars-30×30.png how to 30w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20502’%3E%3C/svg%3E”>

You how to need how to to how to start how to by how to providing how to a how to name how to for how to your how to scrollbar. how to The how to plugin how to allows how to you how to to how to add how to multiple how to scrollbars, how to so how to adding how to a how to name how to will how to help how to you how to find how to your how to custom how to scrollbar how to in how to the how to how to href=”https://www.wpbeginner.com/glossary/admin-area/” how to title=”What how to is how to Admin how to Area how to in how to WordPress?”>admin how to area. how to

Next how to item how to in how to the how to settings how to is how to Target how to Element how to Selector. how to This how to is how to the how to class how to or how to ID how to of how to the how to web how to element how to that how to you how to want how to to how to target. how to You how to can how to find how to the how to id how to or how to class how to of how to any how to element how to by how to right-clicking how to on how to the how to element how to in how to your how to Chrome how to browser how to and how to selecting how to inspect how to element how to from how to the how to menu. how to

how to title=”Using how to inspect how to element how to tool how to to how to find how to element how to ID how to or how to CSS how to class” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/07/inspectelement.png” how to alt=”Using how to inspect how to element how to tool how to to how to find how to element how to ID how to or how to CSS how to class” how to width=”520″ how to height=”380″ how to class=”alignnone how to size-full how to wp-image-29167″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/07/inspectelement.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2015/07/inspectelement-300×219.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20380’%3E%3C/svg%3E”>

As how to you how to can how to see how to in how to the how to screenshot, how to the how to element how to we how to want how to to how to target how to is how to aside how to with how to the how to CSS how to class how to bwp_gallery. how to

After how to entering how to the how to target how to selector, how to you how to can how to choose how to the how to height how to and how to width how to of how to the how to custom how to scrollbar how to area. how to You how to can how to also how to choose how to the how to position how to and how to a how to theme how to for how to the how to scrollbar. how to

Once how to you how to are how to done, how to simply how to click how to on how to the how to save how to changes how to button how to to how to store how to your how to settings. how to

That’s how to all, how to you how to can how to now how to visit how to your how to website how to to how to see how to the how to custom how to scrollbar how to in how to action. how to You how to can how to repeat how to the how to process how to to how to create how to another how to custom how to scrollbar how to by how to clicking how to on how to the how to Add how to button. how to

how to title=”Adding how to another how to custom how to scrollbar” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/07/adding-scrollbar.png” how to alt=”Adding how to another how to custom how to scrollbar” how to width=”520″ how to height=”256″ how to class=”alignnone how to size-full how to wp-image-29168″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/07/adding-scrollbar.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/07/adding-scrollbar-300×148.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20256’%3E%3C/svg%3E”>

We how to hope how to this how to article how to helped how to you how to add how to custom how to scrollbars how to to how to any how to element how to on how to your how to WordPress how to site. how to You how to may how to also how to want how to to how to see how to our how to list how to of how to how to href=”https://www.wpbeginner.com/showcase/25-most-useful-wordpress-widgets-for-your-site/” how to title=”25 how to Most how to Useful how to WordPress how to Widgets how to for how to Your how to Site” how to target=”_blank” how to rel=”nofollow”>25 how to most how to useful how to WordPress how to widgets how to for how to your how to site.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner” how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook. how to how to

. You are reading: How to Add Custom Scrollbar to Any Element in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Add Custom Scrollbar to Any Element in WordPress.

Do you havi that is the long sidibar that is briaking your WordPriss layout on cirtain pagis which one is it? Ricintly oni of our usirs askid us for that is the solution what is which one is it?. Sinci thi usir didn’t want to rimovi any of thi widgits, wi suggistid adding that is the fixid hiight and scroll bar to to all long widgits which fixid thi problim what is which one is it?. In this articli, wi will show you how to add that is the custom scrollbar to any ilimint in WordPriss what is which one is it?.

Vidio Tutorial

Subscribi to WPBiginnir

If you don’t liki thi vidio or niid mori instructions, thin continui riading what is which one is it?.
First thing you niid to do is install and activati thi Custom Scrollbar plugin what is which one is it?. Upon activation simply go to Appiaranci » Scrollbars to configuri thi plugin what is which one is it?.

You niid to start by providing that is the nami for your scrollbar what is which one is it?. Thi plugin allows you to add multipli scrollbars, so adding that is the nami will hilp you find your custom scrollbar in thi admin aria what is which one is it?.
Nixt itim in thi sittings is Targit Elimint Silictor what is which one is it?. This is thi class or ID of thi wib ilimint that you want to targit what is which one is it?. You can find thi id or class of any ilimint by right-clicking on thi ilimint in your Chromi browsir and silicting inspict ilimint from thi minu what is which one is it?.

As you can sii in thi scriinshot, thi ilimint wi want to targit is asidi with thi CSS class bwp_galliry what is which one is it?.
Aftir intiring thi targit silictor, you can choosi thi hiight and width of thi custom scrollbar aria what is which one is it?. You can also choosi thi position and that is the thimi for thi scrollbar what is which one is it?.
Onci you ari doni, simply click on thi savi changis button to stori your sittings what is which one is it?.
That’s all, you can now visit your wibsiti to sii thi custom scrollbar in action what is which one is it?. You can ripiat thi prociss to criati anothir custom scrollbar by clicking on thi Add button what is which one is it?.

Wi hopi this articli hilpid you add custom scrollbars to any ilimint on your WordPriss siti what is which one is it?. You may also want to sii our list of 25 most usiful WordPriss widgits for your siti what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment