Forum Replies Created
-
AuthorPosts
-
Captain DynamoParticipant
Sorry to bother you all.
I've found the solution! It is simply a matter of adding text to the widget to enable it.
All solved.
Regards.
Captain DynamoParticipantJust to retiterate, the following code I am using for http://www.evakona.jp to create a Middle Header Widget, but does not seem to work for http://www.evakona.jp/blog:
--------------------------
//* ADD MIDDLE WIDGET AREA
add_action( 'widgets_init', 'genesischild_extra_widgets' );
//Register in new Widget areas
function genesischild_extra_widgets() {
genesis_register_sidebar( array(
'id' => 'header-middle',
'name' => __( 'Header Middle', 'genesischild' ),
'description' => __( 'This is the Header Middle area', 'genesischild' ),
) );
}//* Add in the new header with the middle widget header
function themeprefix_genesis_do_header() {
global $wp_registered_sidebars;genesis_markup( array(
'html5' => '<div %s>',
'xhtml' => '<div id="title-area">',
'context' => 'title-area',
) );do_action( 'genesis_site_title' );
do_action( 'genesis_site_description' );
echo '</div>';genesis_widget_area( 'header-middle', array(
'before' => '<aside class="header-middle widget-area header-widget-area">',
'after' => '</aside>',
) );if ( ( isset( $wp_registered_sidebars['header-right'] ) && is_active_sidebar( 'header-right' ) ) || has_action( 'genesis_header_right' ) ) {
genesis_markup( array(
'html5' => '<aside %s>',
'xhtml' => '<div class="widget-area header-widget-area">',
'context' => 'header-widget-area',
) );
do_action( 'genesis_header_right' );
add_filter( 'wp_nav_menu_args', 'genesis_header_menu_args' );
add_filter( 'wp_nav_menu', 'genesis_header_menu_wrap' );
dynamic_sidebar( 'header-right' );
remove_filter( 'wp_nav_menu_args', 'genesis_header_menu_args' );
remove_filter( 'wp_nav_menu', 'genesis_header_menu_wrap' );genesis_markup( array(
'html5' => '</aside>',
'xhtml' => '</div>',
) );
}
}
//* Remove the old header
remove_action( 'genesis_header','genesis_do_header' );
//* Add in the new header above
add_action( 'genesis_header', 'themeprefix_genesis_do_header' );-----------------------------------
Captain DynamoParticipantNo.
I'm trying to add a Middle Header Widget between the title/logo and social media icons (which are floated to the right).
Regards.
Captain DynamoParticipantYup,
That's the first thing I typed in. If somebody could take a look at the coding I posted, would be nice.
Thanks.
Captain DynamoParticipantHi Anita,
I tried the coding and it did not work. If there is any alternative, please let me know.
Regards.
Captain DynamoParticipantPersonally I made such changes by making the middle widget "visibility: hidden;" and then change the width of the other two. I did this for my 3 footer widgets, but same apply for the 3 home widgets:
.footer-widgets-1 {
float: left;
padding: 0 30px 0 0;
width: 580px;}
.footer-widgets-2 {
float: left;
width: 280px;
visibility: hidden;
}.footer-widgets-3 {
float: right;
width: 280px;}
Hope this helps.
Captain DynamoParticipantAh, it was actually the "z-index: -1"
It appears that hyperlinks don't work when z-index: -1
All sorted.
Captain DynamoParticipantHey anitac,
Thanks very much. I've solved it.
I knew it was a CSS issue but could not find where it came from. It wasn't in the main .css file but something separate.
Regards,
Akio
Captain DynamoParticipantWow!
So easy, thank you so much guys!
All resolved.
-
AuthorPosts