Reply To: hook before both sidebars

Home Forums Support hook before both sidebars Reply To: hook before both sidebars

#204786
Tom
Lead Developer
Lead Developer

If it needs to only be on the homepage, you can do this:

add_action( 'generate_sidebars','generate_double_right_sidebar', 0 );
function generate_double_right_sidebar()
{
	if ( ! is_front_page() )
		return;

	?>
	<div class="widget-area grid-50 tablet-grid-50 grid-parent sidebar double-sidebar">
		<div class="inside-double-sidebar">
			<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>
				<?php dynamic_sidebar( 'home_right_1' ); ?>
			<?php endif; ?>
		</div>
	</div>
	<?php
}