This is my website.
nanathemonstercook.ga
and these are the variations in php:
<?php
// Adds a widget area.
if (function_exists(‘register_sidebar’)) {
register_sidebar(array(
‘name’ => ‘Extra Header Widget Area’,
‘id’ => ‘extra-widget-area’,
‘description’ => ‘Extra widget area after the header’,
‘before_widget’ => ‘<div class=”widget my-extra-widget”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’
));
}
// Place the widget area after the header in home page only
add_action (‘__after_carousel_inner’, ‘add_my_widget_area’, 10);
function add_my_widget_area() {
if ( tc__f(‘__is_home’) && function_exists(‘dynamic_sidebar’) ) {
dynamic_sidebar(‘Extra Header Widget Area’);
}
}
?>
and style css:
.carousel-inner {
float: left;
width:70%;
position: relative;
margin-bottom: 1.5em;
margin-top: 1em;
padding-left: 10px;
padding-right: 10px;
}
.my-extra-widget {
float: left;
width:25%;
position: relative;
margin-bottom: 1.5em;
margin-top: 1em;
padding-left: 10px;
padding-right: 10px;
}
As you can see, it does not work well. This is not responsive, mobile phone version everything looks terrible. I’m still doing tests, but thank opinions. Thank you.