Skip to main content

Home/ Wordpress/ Group items tagged sidebar

Rss Feed Group items tagged

Luciano Ferrer

How to Add Widgets to WordPress Theme's Footer | Tips and Tricks HQ - 0 views

  •  
    "I wanted to use widgets in the footer of my WordPress theme but my wordpress theme didn't come with a footer-sidebar by default. I didn't really wanted to change the theme just because of that. So I hacked the wordpress theme to introduce footer-sidebars. If you are looking for a tutorial that explains how you can add sidebars/widgets to the footer of your WordPress theme then keep reading."
Luciano Ferrer

widgets - Give Editor Access To Sidebar - WordPress Development Stack Exchange - 3 views

  •  
    "The edit_theme_options capability should allow the user to edit the sidebar as described on this page : http://codex.wordpress.org/Appearance_Widgets_SubPanel Code to add to functions.php $role = get_role('editor'); $role->add_cap('edit_theme_options'); Edit: This should work to prevent editor accessing themes or menus function custom_admin_menu() { $user = new WP_User(get_current_user_id()); if (!empty( $user->roles) && is_array($user->roles)) { foreach ($user->roles as $role) $role = $role; } if($role == "editor") { remove_submenu_page( 'themes.php', 'themes.php' ); remove_submenu_page( 'themes.php', 'nav-menus.php' ); } } add_action('admin_menu', 'custom_admin_menu'); I haven't had chance to test this, but it only removes them from the menu they may still be able to access them by typing in the URL directly."
Luciano Ferrer

How to: Add shortcodes in sidebar Widgets - 1 views

  •  
    "To allow shortcodes in sidebar widgets, simply edit the functions.php file from your them and add the following code: add_filter('widget_text', 'do_shortcode');"
Vernon Fowler

Widgetizing Themes « Automattic - 0 views

  •  
    " 'before_widget' => '', 'after_widget' => '',"
Vernon Fowler

Function Reference/wp register sidebar widget « WordPress Codex - 0 views

  •  
    "wp_register_sidebar_widget( 'your_widget_1', // your unique widget id 'Your Widget', // widget name 'your_widget_display', // callback function array( // options 'description' => 'Description of what your widget does' ) );"
Michelle Thompson

WordPress, GPL and Widget Context - Konstruktors Notes - 0 views

  •  
    Widget Context Plugin allows you to place different sidebar widgets on different pages and posts on your Wordpress blog. Good for having different sidebars for home pages versus individual posts or pages.
1 - 12 of 12
Showing 20 items per page