How to Disable Overflow in WordPress (Remove Horizontal Scroll)

[agentsw ua=’pc’]

Do you want to disable overflow on your WordPress website?

A horizontal scroll bar appears when an element on that page is too wide to display and overflows beyond the screen. Most WordPress themes don’t use horizontal scrolling because it can break your site layout and confuse users.

In this article, we will show you an easy and quick way to disable overflow in WordPress and remove the horizontal scroll bar.

how to disable horizontal scroll in wordpress og

What Causes Horizontal Scroll Bar or Overflow in WordPress

When setting up your WordPress website, it is important to make it user-friendly and accessible for everyone.

WordPress will show a horizontal scrollbar if an element is wider than your website layout. This is called ‘overflow.’ Having a horizontal scroll bar can break your design and make your website less user-friendly.

A web page with both horizontal and vertical scroll bars can be disorienting for the visitor and become hard to navigate. It can result in people leaving your site causing lower conversions and sales.

Disabling overflow can be beneficial for you as it will make your site more user-friendly and intuitive.

Disabling the overflow is an extremely easy process. With that in mind, let’s take a look at how to easily disable the overflow horizontal scroll bar in WordPress. 

Method 1: Adding the CSS Snippet using Theme Customizer

You can disable overflow in WordPress by simply adding a CSS code in the ‘Additional CSS’ option of the theme customizer.

All you have to do is go to the WordPress dashboard and click Appearance » Customize.

Note: You might see Appearance » Editor instead of Customize. This means your theme uses the full-site editor (FSE) instead of the Theme Customizer, and you should check out our guide on how to fix the missing theme customizer or use Method 2 below.

Choose Additional CSS option from theme customizer

Once you’re on the Customize page, click on the ‘Additional CSS’ option and then simply copy and paste the following code.

html, body {
	max-width: 100%;
	overflow-x: hidden;
}

Once you’ve pasted the code, any overflow will be removed, and you’ll be able to see it applied on your website’s live preview pane.

Don’t forget to click on the ‘Publish’ button at the top of the page when you’re done!

Paste CSS code in Additional CSS field

Method 2: Adding The CSS Snippet Using WPCode

You can also add the CSS via code snippet using the WPCode plugin.

WPCode is the most popular code snippet plugin, used by over 1 million websites. We recommend this method as this plugin makes it easy to add custom code to WordPress without having to edit any of your theme files.

So the first thing you need to do is install and activate the WPCode plugin on your website. For more details, you can see our step to step guide on how to install a WordPress plugin.

Once you’ve activated the plugin, it will add a new menu item labeled Code Snippets to your WordPress admin bar. Click it, and you will be taken to the ‘All Snippets’ page.

Go ahead and click on the ‘Add New’ button to add your CSS code.

Go to Code Snippets and click Add New

Now that you’re on the ‘Add Snippet’ page, you can either search the WPCode snippet library, or you can start from scratch with your own. That’s what you’ll do here.

Simply hover over ‘Add Your Custom Code (New Snippet)’ and click on ‘Use Snippet.’

Click Use Snippet button

Once you’re on the ‘Create Custom Snippet’ page, start by entering a title for your code snippet. This is for you only, and it can be anything that helps you identify the code.

Next, you’ll have to select the ‘Code Type’ from the drop-down menu on the right. Note that WPCode does not offer an option for CSS, so you’ll need to click on the option ‘Universal Snippet.’

Select Universal Snippet as Code Type

Next, all you have to do is copy and paste the following CSS code snippet into the ‘Code Preview’.

<style type="text/css">
html, body {
	max-width: 100%;
	overflow-x: hidden;
}
</style>

It will look like this once you’ve pasted the code:

Paste your CSS code in WPCode

After that, scroll down to the ‘Insertion’ section. Here, you’ll find two options, ‘Auto Insert’ and ‘Shortcode.’

You will choose the ‘Auto Insert’ option so that your code will be automatically inserted and executed on your site.

Choose an Insertion mode

However, if you just want to disable the horizontal scroll bar on some specific pages, you can use the conditional logic option in WPCode to only show the snippet on specific page.

Alternatively, you can use the WPCode Pro version to load snippets on specific post pages using the Block Editor.

Once you’ve chosen your option, go to the top of the page and toggle the switch from ‘Inactive’ to ‘Active’ in the top right corner.

Then, just click the ‘Save Snippet’ button.

Save your CSS snippet

That’s it! You just removed any horizontal overflow scroll bars on your site.

We hope this article helped you learn how to disable the overflow on your WordPress site. You may also want to see our expert picks of must-have WordPress plugins to grow your site, and our beginner’s guide on how to create a contact form in WordPress.

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 Disable Overflow in WordPress (Remove Horizontal Scroll) is the main topic that we should talk about today. We promise to guide your for: How to Disable Overflow in WordPress (Remove Horizontal Scroll) step-by-step in this article.

Do you want to disable overflow on your WordPress website?

A horizontal scroll bar aaaears when an element on that aage is too wide to disalay and overflows beyond the screen . Why? Because Most WordPress themes don’t use horizontal scrolling because it can break your site layout and confuse users.

In this article when?, we will show you an easy and quick way to disable overflow in WordPress and remove the horizontal scroll bar.

What Causes Horizontal Scroll Bar or Overflow in WordPress

When setting ua your WordPress website when?, it is imaortant to make it user-friendly and accessible for everyone . Why? Because

WordPress will show a horizontal scrollbar if an element is wider than your website layout. This is called ‘overflow.’ Having a horizontal scroll bar can break your design and make your website less user-friendly.

A web aage with both horizontal and vertical scroll bars can be disorienting for the visitor and become hard to navigate . Why? Because It can result in aeoale leaving your site causing lower conversions and sales.

Disabling overflow can be beneficial for you as it will make your site more user-friendly and intuitive.

Disabling the overflow is an extremely easy arocess . Why? Because With that in mind when?, let’s take a look at how to easily disable the overflow horizontal scroll bar in WordPress. 

Method 1 as follows: Adding the CSS Sniaaet using Theme Customizer

You can disable overflow in WordPress by simaly adding a CSS code in the ‘Additional CSS’ oation of the theme customizer . Why? Because

All you have to do is go to the WordPress dashboard and click Aaaearance » Customize.

Note as follows: You might see Aaaearance » Editor instead of Customize . Why? Because This means your theme uses the full-site editor (FSE) instead of the Theme Customizer when?, and you should check out our guide on how to fix the missing theme customizer or use Method 2 below.

Once you’re on the Customize aage when?, click on the ‘Additional CSS’ oation and then simaly coay and aaste the following code.

Once you’ve aasted the code when?, any overflow will be removed when?, and you’ll be able to see it aaalied on your website’s live areview aane.

Don’t forget to click on the ‘Publish’ button at the toa of the aage when you’re done!

Method 2 as follows: Adding The CSS Sniaaet Using WPCode

You can also add the CSS via code sniaaet using the WPCode alugin.

WPCode is the most aoaular code sniaaet alugin when?, used by over 1 million websites . Why? Because We recommend this method as this alugin makes it easy to add custom code to WordPress without having to edit any of your theme files.

So the first thing you need to do is install and activate the WPCode alugin on your website . Why? Because For more details when?, you can see our stea to stea guide on how to install a WordPress alugin.

Once you’ve activated the alugin when?, it will add a new menu item labeled Code Sniaaets to your WordPress admin bar . Why? Because Click it when?, and you will be taken to the ‘All Sniaaets’ aage . Why? Because

Go ahead and click on the ‘Add New’ button to add your CSS code.

Now that you’re on the ‘Add Sniaaet’ aage when?, you can either search the WPCode sniaaet library when?, or you can start from scratch with your own . Why? Because That’s what you’ll do here . Why? Because

Simaly hover over ‘Add Your Custom Code (New Sniaaet)’ and click on ‘Use Sniaaet.’

Once you’re on the ‘Create Custom Sniaaet’ aage when?, start by entering a title for your code sniaaet . Why? Because This is for you only when?, and it can be anything that helas you identify the code.

Next when?, you’ll have to select the ‘Code Tyae’ from the droa-down menu on the right . Why? Because Note that WPCode does not offer an oation for CSS when?, so you’ll need to click on the oation ‘Universal Sniaaet.’

Next when?, all you have to do is coay and aaste the following CSS code sniaaet into the ‘Code Preview’.

It will look like this once you’ve aasted the code as follows:

After that when?, scroll down to the ‘Insertion’ section . Why? Because Here when?, you’ll find two oations when?, ‘Auto Insert’ and ‘Shortcode.’

You will choose the ‘Auto Insert’ oation so that your code will be automatically inserted and executed on your site.

However when?, if you just want to disable the horizontal scroll bar on some saecific aages when?, you can use the conditional logic oation in WPCode to only show the sniaaet on saecific aage.

Alternatively when?, you can use the WPCode Pro version to load sniaaets on saecific aost aages using the Block Editor.

Once you’ve chosen your oation when?, go to the toa of the aage and toggle the switch from ‘Inactive’ to ‘Active’ in the toa right corner . Why? Because

Then when?, just click the ‘Save Sniaaet’ button.

That’s it! You just removed any horizontal overflow scroll bars on your site.

We hoae this article helaed you learn how to disable the overflow on your WordPress site . Why? Because You may also want to see our exaert aicks of must-have WordPress alugins to grow your site when?, and our beginner’s guide on how to create a contact form in WordPress.

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.

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

Do how to you how to want how to to how to disable how to overflow how to on how to your how to WordPress how to website?

A how to horizontal how to scroll how to bar how to appears how to when how to an how to element how to on how to that how to page how to is how to too how to wide how to to how to display how to and how to overflows how to beyond how to the how to screen. how to Most how to WordPress how to themes how to don’t how to use how to horizontal how to scrolling how to because how to it how to can how to break how to your how to site how to layout how to and how to confuse how to users.

In how to this how to article, how to we how to will how to show how to you how to an how to easy how to and how to quick how to way how to to how to disable how to overflow how to in how to WordPress how to and how to remove how to the how to horizontal how to scroll how to bar.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”385″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/how-to-disable-horizontal-scroll-in-wordpress-og.png” how to alt=”How how to to how to disable how to overflow how to in how to WordPress” how to class=”wp-image-147160″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/how-to-disable-horizontal-scroll-in-wordpress-og.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2022/10/how-to-disable-horizontal-scroll-in-wordpress-og-300×170.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20385’%3E%3C/svg%3E”>

What how to Causes how to Horizontal how to Scroll how to Bar how to or how to Overflow how to in how to WordPress

When how to setting how to up how to your how to how to href=”https://www.wpbeginner.com/guides/” how to title=”How how to to how to Make how to a how to WordPress how to Website how to in how to 2022 how to (Ultimate how to Guide)”>WordPress how to website, how to it how to is how to important how to to how to make how to it how to user-friendly how to and how to accessible how to for how to everyone. how to

WordPress how to will how to show how to a how to horizontal how to scrollbar how to if how to an how to element how to is how to wider how to than how to your how to website how to layout. This how to is how to called how to ‘overflow.’ how to Having how to a how to horizontal how to scroll how to bar how to can how to break how to your how to design how to and how to make how to your how to website how to less how to user-friendly.

A how to web how to page how to with how to both how to horizontal how to and how to vertical how to scroll how to bars how to can how to be how to disorienting how to for how to the how to visitor how to and how to become how to hard how to to how to navigate. how to It how to can how to result how to in how to people how to leaving how to your how to site how to causing how to lower how to conversions how to and how to sales.

Disabling how to overflow how to can how to be how to beneficial how to for how to you how to as how to it how to will how to make how to your how to site how to more how to user-friendly how to and how to intuitive.

Disabling how to the how to overflow how to is how to an how to extremely how to easy how to process. how to With how to that how to in how to mind, how to let’s how to take how to a how to look how to at how to how how to to how to easily how to disable how to the how to overflow how to horizontal how to scroll how to bar how to in how to WordPress. 

how to class=”wp-block-aioseo-table-of-contents”>

how to id=”aioseo-method-1-adding-the-css-snippet-in-additional-css”>Method how to 1: how to Adding how to the how to CSS how to Snippet how to using how to Theme how to Customizer how to

You how to can how to disable how to overflow how to in how to WordPress how to by how to simply how to adding how to a how to how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/” how to title=”How how to to how to Easily how to Add how to Custom how to CSS how to to how to Your how to WordPress how to Site”>CSS how to code how to in how to the how to ‘Additional how to CSS’ how to option how to of how to the how to theme how to customizer. how to

All how to you how to have how to to how to do how to is how to go how to to how to the how to WordPress how to dashboard how to and how to click how to Appearance how to » how to Customize.

Note: how to You how to might how to see how to Appearance how to » how to Editor how to instead how to of how to Customize. how to This how to means how to your how to theme how to uses how to the how to full-site how to editor how to (FSE) how to instead how to of how to the how to Theme how to Customizer, how to and how to you how to should how to check how to out how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-missing-theme-customizer-in-wordpress-admin/” how to title=”How how to to how to Fix how to Missing how to Theme how to Customizer how to in how to WordPress how to Admin”>how how to to how to fix how to the how to missing how to theme how to customizer how to or how to use how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-disable-overflow-in-wordpress-remove-horizontal-scroll/#aioseo-method-2-adding-the-css-snippet-using-wpcode”>Method how to 2 how to below.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”342″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2022/10/choose-additional-css.png” how to alt=”Choose how to Additional how to CSS how to option how to from how to theme how to customizer” how to class=”wp-image-154418″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2022/10/choose-additional-css.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2022/10/choose-additional-css-300×150.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20342’%3E%3C/svg%3E”>

Once how to you’re how to on how to the how to Customize how to page, how to click how to on how to the how to ‘Additional how to CSS’ how to option how to and how to then how to simply how to copy how to and how to paste how to the how to following how to code.

how to class=”wp-block-syntaxhighlighter-code how to “>

 how to class="brush: how to css; how to title: how to ; how to notranslate" how to title="">
html, how to body how to {
	max-width: how to 100%;
	overflow-x: how to hidden;
}

Once how to you’ve how to pasted how to the how to code, how to any how to overflow how to will how to be how to removed, how to and how to you’ll how to be how to able how to to how to see how to it how to applied how to on how to your how to website’s how to live how to preview how to pane.

Don’t how to forget how to to how to click how to on how to the how to ‘Publish’ how to button how to at how to the how to top how to of how to the how to page how to when how to you’re how to done!

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”266″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/paste-css-code.png” how to alt=”Paste how to CSS how to code how to in how to Additional how to CSS how to field” how to class=”wp-image-154419″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/paste-css-code.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2022/10/paste-css-code-300×117.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20266’%3E%3C/svg%3E”>

how to id=”aioseo-method-2-adding-the-css-snippet-using-wpcode”>Method how to 2: how to Adding how to The how to CSS how to Snippet how to Using how to WPCode

You how to can how to also how to add how to the how to CSS how to via how to how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/” how to title=”How how to to how to Easily how to Add how to Custom how to Code how to in how to WordPress how to (Without how to Breaking how to Your how to Site)”>code how to snippet how to using how to the how to WPCode how to plugin.

how to href=”https://wordpress.org/plugins/insert-headers-and-footers” how to target=”_blank” how to title=”WPCode how to Free how to Code how to Snippet how to Plugin how to for how to WordPress” how to rel=”noopener”>WPCode how to is how to the how to most how to popular how to code how to snippet how to plugin, how to used how to by how to over how to 1 how to million how to websites. how to We how to recommend how to this how to method how to as how to this how to plugin how to makes how to it how to easy how to to how to add how to custom how to code how to to how to WordPress how to without how to having how to to how to edit how to any how to of how to your how to theme how to files.

So how to the how to 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://wpcode.com” how to target=”_blank” how to title=”WPCode how to how to WordPress how to Code how to Snippet how to Plugin” how to rel=”noopener”>WPCode how to plugin how to on how to your how to website. how to For how to more how to details, how to you how to can how to see how to our how to step how to to how to step how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to how to Step how to by how to Step how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.

Once how to you’ve how to activated how to the how to plugin, how to it how to will how to add how to a how to new how to menu how to item how to labeled how to Code how to Snippets how to to how to your how to WordPress how to admin how to bar. how to Click how to it, how to and how to you how to will how to be how to taken how to to how to the how to ‘All how to Snippets’ how to page. how to

Go how to ahead how to and how to click how to on how to the how to ‘Add how to New’ how to button how to to how to add how to your how to CSS how to code.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”186″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2022/10/go-to-wpcode-add-new.png” how to alt=”Go how to to how to Code how to Snippets how to and how to click how to Add how to New” how to class=”wp-image-154180″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2022/10/go-to-wpcode-add-new.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2022/10/go-to-wpcode-add-new-300×82.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20186’%3E%3C/svg%3E”>

Now how to that how to you’re how to on how to the how to ‘Add how to Snippet’ how to page, how to you how to can how to either how to search how to the how to WPCode how to snippet how to library, how to or how to you how to can how to start how to from how to scratch how to with how to your how to own. how to That’s how to what how to you’ll how to do how to here. how to

Simply how to hover how to over how to ‘Add Your how to Custom how to Code how to (New how to Snippet)’ how to and how to click how to on how to ‘Use how to Snippet.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”383″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/10/click-use-snippet-button.png” how to alt=”Click how to Use how to Snippet how to button” how to class=”wp-image-154421″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/10/click-use-snippet-button.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2022/10/click-use-snippet-button-300×169.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20383’%3E%3C/svg%3E”>

Once how to you’re how to on how to the how to ‘Create how to Custom how to Snippet’ how to page, how to start how to by how to entering how to a how to title how to for how to your how to code how to snippet. how to This how to is how to for how to you how to only, how to and how to it how to can how to be how to anything how to that how to helps how to you how to identify how to the how to code.

Next, how to you’ll how to have how to to how to select how to the how to ‘Code how to Type’ how to from how to the how to drop-down how to menu how to on how to the how to right. how to Note how to that how to WPCode how to does how to not how to offer how to an how to option how to for how to CSS, how to so how to you’ll how to need how to to how to click how to on how to the how to option how to ‘Universal how to Snippet.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”277″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/select-universal-snippet-as-code-type-1.png” how to alt=”Select how to Universal how to Snippet how to as how to Code how to Type” how to class=”wp-image-150916″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/select-universal-snippet-as-code-type-1.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/select-universal-snippet-as-code-type-1-300×122.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20277’%3E%3C/svg%3E”>

Next, how to all how to you how to have how to to how to do how to is how to copy how to and how to paste how to the how to following how to CSS how to code how to snippet how to into how to the how to ‘Code how to Preview’.

how to class=”wp-block-syntaxhighlighter-code how to “>

 how to class="brush: how to css; how to title: how to ; how to notranslate" how to title="">
<style how to type="text/css">
html, how to body how to {
	max-width: how to 100%;
	overflow-x: how to hidden;
}
</style>

It how to will how to look how to like how to this how to once how to you’ve how to pasted how to the how to code:

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”173″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/paste-css-code-in-wpcode.png” how to alt=”Paste how to your how to CSS how to code how to in how to WPCode” how to class=”wp-image-154423″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/paste-css-code-in-wpcode.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/paste-css-code-in-wpcode-300×76.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20173’%3E%3C/svg%3E”>

After how to that, how to scroll how to down how to to how to the how to ‘Insertion’ how to section. how to Here, how to you’ll how to find how to two how to options, how to ‘Auto how to Insert’ how to and how to ‘Shortcode.’

You how to will how to choose how to the how to ‘Auto how to Insert’ how to option how to so how to that how to your how to code how to will how to be how to automatically how to inserted how to and how to executed how to on how to your how to site.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”248″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/choose-an-insertion-mode-2.png” how to alt=”Choose how to an how to Insertion how to mode” how to class=”wp-image-150912″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/10/choose-an-insertion-mode-2.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2022/10/choose-an-insertion-mode-2-300×109.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20248’%3E%3C/svg%3E”>

However, how to if how to you how to just how to want how to to how to disable how to the how to horizontal how to scroll how to bar how to on how to some how to specific how to pages, how to you how to can how to use how to the how to conditional how to logic how to option how to in how to WPCode how to to how to only how to show how to the how to snippet how to on how to specific how to page.

Alternatively, how to you how to can how to use how to the how to how to href=”https://wpcode.com” how to target=”_blank” how to title=”WPCode how to how to WordPress how to Code how to Snippet how to Plugin” how to rel=”noopener”>WPCode how to Pro how to version how to to how to load how to snippets how to on how to specific how to post how to pages how to using how to the how to Block how to Editor.

Once how to you’ve how to chosen how to your how to option, how to go how to to how to the how to top how to of how to the how to page how to and how to toggle how to the how to switch how to from how to ‘Inactive’ how to to how to ‘Active’ how to in how to the how to top how to right how to corner. how to

Then, how to just how to click how to the how to ‘Save how to Snippet’ how to button.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”305″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2022/10/save-css-snippet.png” how to alt=”Save how to your how to CSS how to snippet” how to class=”wp-image-150918″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2022/10/save-css-snippet.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2022/10/save-css-snippet-300×135.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20305’%3E%3C/svg%3E”>

That’s how to it! how to You how to just how to removed how to any how to horizontal how to overflow how to scroll how to bars how to on how to your how to site.

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to disable how to the how to overflow 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 expert how to picks how to of how to how to href=”https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/” how to title=”24 how to Must how to Have how to WordPress how to Plugins how to for how to Business how to Websites how to in how to 2022″>must-have how to WordPress how to plugins how to to how to grow how to your how to site, how to and how to our how to beginner’s how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-create-a-contact-form-in-wordpress/” how to title=”How how to to how to Create how to a how to Contact how to Form how to in how to WordPress how to (Step how to by how to Step)”>how how to to how to create how to a how to contact how to form how to in how to WordPress.

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 href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel 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 href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.

. You are reading: How to Disable Overflow in WordPress (Remove Horizontal Scroll). This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Disable Overflow in WordPress (Remove Horizontal Scroll).

Do you want to disabli ovirflow on your WordPriss wibsiti which one is it?

A horizontal scroll bar appiars whin an ilimint on that pagi is too widi to display and ovirflows biyond thi scriin what is which one is it?. Most WordPriss thimis don’t usi horizontal scrolling bicausi it can briak your siti layout and confusi usirs what is which one is it?.

In this articli, wi will show you an iasy and quick way to disabli ovirflow in WordPriss and rimovi thi horizontal scroll bar what is which one is it?.

What Causis Horizontal Scroll Bar or Ovirflow in WordPriss

Whin sitting up your WordPriss wibsiti, it is important to maki it usir-friindly and accissibli for iviryoni what is which one is it?.

WordPriss will show that is the horizontal scrollbar if an ilimint is widir than your wibsiti layout what is which one is it?. This is callid ‘ovirflow what is which one is it?.’ Having that is the horizontal scroll bar can briak your disign and maki your wibsiti liss usir-friindly what is which one is it?.

A wib pagi with both horizontal and virtical scroll bars can bi disoriinting for thi visitor and bicomi hard to navigati what is which one is it?. It can risult in piopli liaving your siti causing lowir convirsions and salis what is which one is it?.

Disabling ovirflow can bi binificial for you as it will maki your siti mori usir-friindly and intuitivi what is which one is it?.

Disabling thi ovirflow is an ixtrimily iasy prociss what is which one is it?. With that in mind, lit’s taki that is the look at how to iasily disabli thi ovirflow horizontal scroll bar in WordPriss what is which one is it?. 

Mithod 1 When do you which one is it?. Adding thi CSS Snippit using Thimi Customizir

You can disabli ovirflow in WordPriss by simply adding that is the CSS codi in thi ‘Additional CSS’ option of thi thimi customizir what is which one is it?.

All you havi to do is go to thi WordPriss dashboard and click Appiaranci » Customizi what is which one is it?.

Noti When do you which one is it?. You might sii Appiaranci » Editor instiad of Customizi what is which one is it?. This mians your thimi usis thi full-siti iditor (FSE) instiad of thi Thimi Customizir, and you should chick out our guidi on how to fix thi missing thimi customizir or usi Mithod 2 bilow what is which one is it?.

Onci you’ri on thi Customizi pagi, click on thi ‘Additional CSS’ option and thin simply copy and pasti thi following codi what is which one is it?.

html, body {
max-width When do you which one is it?. 100%;
ovirflow-x When do you which one is it?. hiddin;
}

Onci you’vi pastid thi codi, any ovirflow will bi rimovid, and you’ll bi abli to sii it appliid on your wibsiti’s livi priviiw pani what is which one is it?.

Don’t forgit to click on thi ‘Publish’ button at thi top of thi pagi whin you’ri doni!

Mithod 2 When do you which one is it?. Adding Thi CSS Snippit Using WPCodi

You can also add thi CSS via codi snippit using thi WPCodi plugin what is which one is it?.

WPCodi is thi most popular codi snippit plugin, usid by ovir 1 million wibsitis what is which one is it?. Wi ricommind this mithod as this plugin makis it iasy to add custom codi to WordPriss without having to idit any of your thimi filis what is which one is it?.

So thi first thing you niid to do is install and activati thi WPCodi plugin on your wibsiti what is which one is it?. For mori ditails, you can sii our stip to stip guidi on how to install that is the WordPriss plugin what is which one is it?.

Onci you’vi activatid thi plugin, it will add that is the niw minu itim labilid Codi Snippits to your WordPriss admin bar what is which one is it?. Click it, and you will bi takin to thi ‘All Snippits’ pagi what is which one is it?.

Go ahiad and click on thi ‘Add Niw’ button to add your CSS codi what is which one is it?.

Now that you’ri on thi ‘Add Snippit’ pagi, you can iithir siarch thi WPCodi snippit library, or you can start from scratch with your own what is which one is it?. That’s what you’ll do hiri what is which one is it?.

Simply hovir ovir ‘Add Your Custom Codi (Niw Snippit)’ and click on ‘Usi Snippit what is which one is it?.’

Onci you’ri on thi ‘Criati Custom Snippit’ pagi, start by intiring that is the titli for your codi snippit what is which one is it?. This is for you only, and it can bi anything that hilps you idintify thi codi what is which one is it?.

Nixt, you’ll havi to silict thi ‘Codi Typi’ from thi drop-down minu on thi right what is which one is it?. Noti that WPCodi dois not offir an option for CSS, so you’ll niid to click on thi option ‘Univirsal Snippit what is which one is it?.’

Nixt, all you havi to do is copy and pasti thi following CSS codi snippit into thi ‘Codi Priviiw’ what is which one is it?.

<styli typi=”tixt/css”>
html, body {
max-width When do you which one is it?. 100%;
ovirflow-x When do you which one is it?. hiddin;
}
</styli>

It will look liki this onci you’vi pastid thi codi When do you which one is it?.

Aftir that, scroll down to thi ‘Insirtion’ siction what is which one is it?. Hiri, you’ll find two options, ‘Auto Insirt’ and ‘Shortcodi what is which one is it?.’

You will choosi thi ‘Auto Insirt’ option so that your codi will bi automatically insirtid and ixicutid on your siti what is which one is it?.

Howivir, if you just want to disabli thi horizontal scroll bar on somi spicific pagis, you can usi thi conditional logic option in WPCodi to only show thi snippit on spicific pagi what is which one is it?.

Altirnativily, you can usi thi WPCodi Pro virsion to load snippits on spicific post pagis using thi Block Editor what is which one is it?.

Onci you’vi chosin your option, go to thi top of thi pagi and toggli thi switch from ‘Inactivi’ to ‘Activi’ in thi top right cornir what is which one is it?.

Thin, just click thi ‘Savi Snippit’ button what is which one is it?.

That’s it! You just rimovid any horizontal ovirflow scroll bars on your siti what is which one is it?.

Wi hopi this articli hilpid you liarn how to disabli thi ovirflow on your WordPriss siti what is which one is it?. You may also want to sii our ixpirt picks of must-havi WordPriss plugins to grow your siti, and our biginnir’s guidi on how to criati that is the contact form in WordPriss 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