is it possible to create custom widgets page in admin?
is it possible to create custom widgets page in admin?
is it possible to create custom widgets page in admin?
Yes you can add an around the title of the widget, you do this in the register_sidebar code which you would put in your functions.php add_action( ‘widgets_init’, ‘theme_register_sidebars’ ); function theme_register_sidebars() { register_sidebar( array( ‘id’ => ‘mysidebar-sidebar’, ‘name’ => __( ‘My Sidebar’, ‘themename’ ), ‘description’ => __( ‘Widgets for my sidebar’, ‘themename’ ), ‘before_widget’ => … Read more
No offense, but your code is a COMPLETE mess, so I’m just going to give you clean code and then tell you how to target it. register_sidebar( array( ‘name’ => ‘Post Sidebar’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget widget-%2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<div class=”titlediv”>’, ‘after_title’ => ‘</div>’, ) ); Then to target the title … Read more
The best way is to move <div id=”side”> outside of <div id=”content”>, so that you can properly position it next to the slider (<div id=”lof-container”>). Alternatively, you could do it with #maincontent { overflow: visible; } #side { margin-top: -300px; } though this is pretty hackish.
Looks like the problem is with the id‘s. Try putting some unique names. For example, this doesn’t works in TwentyEleven, as it registers a sidebar with the same ID: ‘name’ => __(‘Main Sidebar’), ‘id’ => ‘sidebar-1’, From the Codex: id – Sidebar id – Must be all in lowercase, with no spaces (default is a … Read more
you can put this code in your functions add_action( ‘init’, ‘register_my_menus’ ); function register_my_menus() { register_nav_menus( array( ‘menu-1’ => __( ‘Head’ ) ) ); } and this code, in the place you want your second menu <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-1’ ) ); ?> and than, you can control your new menu, through the … Read more
Pass a different id for each sidebar or you will overwrite the same sidebar again and again. You can also just leave the id argument out, and WordPress will create one automatically. Side note: __( $area. ‘ Widgets’ ) and __( ‘Widgets in this area will appear on the ‘ . $area ) … are … Read more
$GLOBALS[‘wp_registered_sidebars’] is a multidimensional array (an array of arrays) so you have to loop over this array and execute the key() function for each member Now I think I know what is what you want to get. If you want to get the id of the widget’s parent sidebar, the widget area where the widget … Read more
register_sidebar() will not wrap an element properly
wp_register_sidebar_widget in loop within a plugin?