Reply To: Widget for adding stuff after all excerpts at homepage


It’s possible to do that but you’d have to follow a few steps.
also it is important that you are using a child theme!

1. Go to Dashboard -> Appearance -> Editor -> Select Theme to edit.

2. Replace the contents of the PARENT Asteroid Theme’s index.php with this then save. (No need to do this step if using Asteroid Theme 1.1.0 or later.)

3. Add this code on the CHILD Asteroid Theme’s functions.php

function register_extra_sidebar() {
		'name' 		=> __('After Content', 'asteroid'),
		'id' 		=> 'widgets_after_content',
		'before_widget' => '<div id="%1$s" class="widget-after-content %2$s">',
		'after_widget' 	=> '</div>',
		'before_title' 	=> '<h4 class="widget-title">',
		'after_title' 	=> '</h4>',) 
add_action('after_setup_theme', 'register_extra_sidebar');

function widget_after_content() {
  if ( is_home() ){
	echo '<div id="widgets-wrap-after-content">';
	  dynamic_sidebar( 'widgets_after_content' ); 
	echo '</div>';
add_action('ast_hook_after_content', 'widget_after_content');

Now when you go to the widgets page there will be a new area called “After Content”.