Home Forums Plugin Support WP User Frontend Pro Change sidebar position

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #72749

    joshi
    Member
    Post count: 18

    Hello,

    I got this code from the support of my theme to change the default sidebar position when creating a post.

    Unfortunately that doesn't work if the post is created with WPUF.
    Do you have another hook that I can use to make this work?

    function dt_change_default_sidebar() {
    	global $DT_META_BOXES;
    	if ( $DT_META_BOXES ) {
    		if ( isset($DT_META_BOXES[ 'dt_page_box-sidebar' ]) ) {
    			$DT_META_BOXES[ 'dt_page_box-sidebar' ]['fields'][0]['std'] = 'disabled';
    		}
    	}
    }
    add_action( 'admin_init', 'dt_change_default_sidebar', 10 );

    Thank you

    #72883

    Nayem
    Moderator
    Post count: 6480

    Hello Joshi,

    We are now in vacation. Our office will start from 29th Sept. I will be able to provide solution after opening our office. Please keep pateince.

    Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Change sidebar position’ is closed to new replies.