After Import – Assign Front Page & Register Sidebar
-
Awesome Plugin – thank for all your hard work, has saved me hundreds of hours ?? THANK YOU…
Now just a few questions as I tried and failed, not very well versed with WP functions, so please bear with me..
1. I want to assign “Home” page as “Front Page” (like we do from Reading settings, and similarly I want to assign a page to “Archives”..
2. I am using Multiple Sidebar plugin, and want to register new sidebar after the import and add certain widgets to them… below is what I am doing, but it doesn’t register new sidebar..
register_sidebar(array(
‘name’ => esc_html__(‘My Sidebar’, ‘mytheme’),
‘id’ => ‘My Sidebar’,
‘description’ => ”,
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<div class=”heading”><h3>’,
‘after_title’ => ‘</h3></div>’,
));update_option( ‘sbg_sidebars’, ‘My Sidebar’ );
Any idea, why it doesn’t register sidebar ? secondly should I register sidebar before import so that it adds widgets automatically ?..
thank you once again.
regards
- The topic ‘After Import – Assign Front Page & Register Sidebar’ is closed to new replies.