Plugin widget area oversize, out of margin, title=headline istead of paragraph

[ad_1]

Plugin Author
tuxlog

(@tuxlog)

Hello,

wp-forecast does not format the widget title itself. It uses the settings your theme gives when registering the sidebar.

For example if you look at the twentytwentone theme in functions.php you will find

function twenty_twenty_one_widgets_init() {

register_sidebar(
	array(
	'name'          => esc_html__( 'Footer', 'twentytwentyone' ),
	'id'            => 'sidebar-1',
	'description'   => esc_html__( 'Add widgets here to appear in your footer.', 'twentytwentyone' ),
	'before_widget' => '<section id="%1$s" class="widget %2$s">',
	'after_widget'  => '</section>',
	'before_title'  => '<h2 class="widget-title">',
	'after_title'   => '</h2>',
)
);
}

wp-forecast will show its headline between what is defined in before_title and after_title.

I just visited your site and it seems wp-forecast aligns left while all your other widgets aligns right of the widget area. This may give the idea it is outside the widget area but it isn’t. It is just aligned left. You can change this in the wp-forecast css file. E.g. adding margin-left: 40px; to the div.wp-forecast class.

I did a quick edit on my browsers representation and it seems to work like this.

Thank you, I will get in touch with WordPress to see why this is the only widget displaying like this. The tech data should be able to help define the problem, possibly a .CSS rendering capability. If I come up with useful tips, I will share these with the subject, in case anyone else has the issue.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer