• Resolved john_graver

    (@john_graver)


    Hi all,

    I use hook-prepend-default-sidebar to display image in the left sidebar. In the sidebar I have also the Menu widget. With this hook the image displays first (i.e. before the Menu widget). How can I assure, that the image displays as last (under all widgets in the sidebar)?
    Is it also possible, that the image displays in Extra sidebar?

    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author nobita

    (@nobita)

    Hi

    Please use
    action hook

    raindrops_append_default_sidebar

    or create template part file. name below.

    hook-append-default-sidebar.php

    It works but a little buggy.(space)

    Please set style.

    #yui-main + .yui-b .lsidebar{
        min-height:0!important;
    }

    If you needs to find a insert position.

    Try

    wp-config.php

    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', true);

    and

    Dashboard / Appearance / Customize

    Advanced / Developer Settings

    Set value ‘show’.

    Saved

    Note:do not forget Reinstate wp-config.php define('WP_DEBUG', false);

    Thank you.

    Theme Author nobita

    (@nobita)

    Theme Author nobita

    (@nobita)

    add anothor better solution
    (no needs add style)

    add_action('dynamic_sidebar_after','raindrops_dynamic_sidebar_after',10,2);
    
    function raindrops_dynamic_sidebar_after($index,$bool){
    	if( $index == 'sidebar-1' ) {
    	echo 'after default sidebar';
    	}
    	if( $index == 'sidebar-2' ) {
    	echo 'after extra sidebar';
    	}
    }

    Thread Starter john_graver

    (@john_graver)

    Hi Nobita,

    Thanks, now it works fine with hook-append-default-sidebar.php

    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘hook-prepend-default-sidebar – order’ is closed to new replies.