I simply need to fix a Wordpress Widget Function display
$10-30 USD
Pagado a la entrega
Hi All,
I am stumped here. Perhaps I've been at it too long and am missing something elementary or it really is a missing link. I hope someone can point me in the right direction here.
I have this piece of code for my new widget functions:
function underslider_widgets_one_init() {
register_sidebar( array(
'name' => 'Under Slider 1',
'id' => 'under_slider_1',
'before_widget' => '<div class="under_slider_container">',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'underslider_widgets_one_init' );
function underslider_widgets_two_init() {
register_sidebar( array(
'name' => 'Under Slider 2',
'id' => 'under_slider_2',
'before_widget' => '<div class="under_slider_container">',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'underslider_widgets_two_init' );
function underslider_widgets_three_init() {
register_sidebar( array(
'name' => 'Under Slider 3',
'id' => 'under_slider_3',
'before_widget' => '<div class="under_slider_container">',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'underslider_widgets_three_init' );
Followed by this piece of code to call on it:
case 'header_layerslider':
$this->html.= '<div class="header-wrapper">
' . (isset($header_background_array['back_html']) ? $header_background_array['back_html'] : '') . '
<div class="header-main-container">';
$layerslider_id = (isset($args['_uncode_layerslider_list']) && $args['_uncode_layerslider_list'][0] != '') ? $args['_uncode_layerslider_list'][0] : '';
$this->html.= __(do_shortcode('[layerslider id="' . $layerslider_id . '"]'));
$this->html.= '</div><div id="under-slider-widgets-area">';
/****** NEW CUSTOM CONTENT BOXES UNDER SLIDER *********/
if ( is_active_sidebar( 'under_slider_1' ) ) :
$this->html.= '<div id="under-slider-1">';
dynamic_sidebar( 'under_slider_1' );
$this->html.= '</div><!-- #primary-sidebar -->';
endif;
if ( is_active_sidebar( 'under_slider_2' ) ) :
$this->html.= '<div id="under-slider-2">';
dynamic_sidebar( 'under_slider_2' );
$this->html.= '</div><!-- #primary-sidebar -->';
endif;
if ( is_active_sidebar( 'under_slider_3' ) ) :
$this->html.= '<div id="under-slider-3">';
dynamic_sidebar( 'under_slider_3' );
$this->html.= '</div><!-- #primary-sidebar -->';
endif;
$this->html.= '</div></div>';
break;
The widgets display but are not nested in the <div id="under-slider-1">,<div id="under-slider-2">,<div id="under-slider-3"> divs.
You can see where the div is display in the attached image.
I really do appreciate any and all help on this.
Nº del proyecto: #11927061
Sobre el proyecto
Adjudicado a:
14 freelancers están ofertando un promedio de $32 por este trabajo
Hi, Just got your requirement and ready to fix this issue. I can assure you quality work on time. Let me know if you have any question. Hope to hear from you soon!!
Hello, I am a 6 years PHP programmer, JavaScript programmer, where is the attched image? I can not see the image. Su Weisi
hello i can do it right now. already online now. if u give me access i can do it now or inbox me to do on my pc and show the working result. thanks,.
Hi I am very much sure that I can complete work as per your requirements.I assure you that I will provide you quality work and within the decided time frame and budget. Please drop me a message for further discussio Más
I have good knowledge of Wordpress and I able to do this task very well with good quality. our main motto is client satisfaction and make a long term relationship with you. Thank you.