Adding Sidebars in WordPress Theme

Use this in your funtions.php to register sidebar if ( function_exists(‘register_sidebar’) ) register_sidebar(array(‘name’=>’Sidebar ‘, ‘id’=>’sidebar’, ‘before_widget’ => ‘<div>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<p>’, ‘after_title’ => ‘</p>’, )); To use it in your theme use the following <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar’) ) : endif; ?> Refer this to know more : http://codex.wordpress.org/Function_Reference/register_sidebar

Recommended Media Size for Twenty Fourteen

Twenty Fourteen uses 2 custom media sizes: 672x372px for post thumbnail image size and 1038x576px for ‘twentyfourteen-full-width’ custom image size So for images uploaded after the theme is activated, these 2 size are created automatically, but for images uploaded before twentyfourteen is activated, an available size is used and image is resized via html/css properties. … Read more

Some questions about how proper add 2 CSS file in a WordPress theme?

It seems like you’re using dependencies the opposite way of how they should be used. In the WordPress Codex, they try to explain how it’s supposed to be used. $deps (array) (optional) Array of handles of any stylesheets that this stylesheet depends on. Dependent stylesheets will be loaded before this stylesheet. Since your style2.css is … Read more

Want to add different text after each menu item

You need a Custom Walker for this. In your Custom Walker you define the start of the element different, adding a span after the link: class Walker_With_Title_Menu extends Walker_Nav_Menu { function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $output .= sprintf( “\n<li><a href=”https://wordpress.stackexchange.com/questions/131521/%s”%s>%s</a><span class=”your-line”>%s</span></li>\n”, $item->url, ( $item->object_id === … Read more