How Do I Make Horizontal Scrolling in WordPress?

Scroll horizontally in WordPress by adding the following to your theme’s functions.php file:

function scroll_horizontally(){

$container = wp_get_template_part(

‘content-area’,

‘horizontal-scrollbar’);

if (!$container)

return;

$container->scrollbar = array(

‘type’ => ‘horizontal’,

‘direction’ => ‘left’,

‘stop’ => ‘1px’,

‘width’ => ‘100%’,

‘height’ => ‘auto’);

}

If you want to disable the horizontal scrollbar, simply remove the following line:.