I wan’t boxes like these to be shown horizontally when added to a widget. They are in a dynamic sidebar now.
https://gyazo.com/733ab8b0935905ac469dca76ffa67ce5
Just to make it super clear – it’s a dynamic sidebar and I’ve added widget boxes in it but I want them to be displayed horizontally. ??
]]>I do understand you though!
But is WordPress set on having sidebars/widgets vertically? It seems like it’s a hard thing to get it horizontally or?
]]><div class="dogs">
<aside id="text-10" class="widget widget_text">
<h3 class="widget-title">Box 1</h3>
<div class="textwidget"><img src="IMGURL" /></div>
</aside>
<aside id="text-11" class="widget widget_text"><h3 class="widget-title">Box 2</h3>
<div class="textwidget"><img src="IMGURL" /></div>
</aside>
</div>
]]>
https://themekraft.com/tk-wordpress-bootstrap-starter-theme/
Otherwise I will try and upload it on another domain. Just a lot of work ??
]]>This will only work on Bootstrap based themes like mine though.
When you have added the sidebar to the functions.php file:
register_sidebar( array(
‘name’ => __( ‘SIDEBAR NAME’),
‘id’ => ‘SIDEBAR ID’,
‘before_widget’ => ‘<div class=”col-sm-3″>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”WIDGET TITLE CLASS”>’,
‘after_title’ => ‘</h3>’,
) );
}
Just simply add the bootstrap squares to be displayed before and after widget – <div class=”col-sm-3″> Widget content will be here </div>.
]]>