Theming

Additional Image Sizes

In THEME/functions.php if (function_exists(‘add_image_size’)) { add_image_size(‘category-thumb’, 280, 9999); //280px wide unlimited height add_image_size(‘item_detail’, 400, 500, true); // cropped } To use new image sizes

Read More

Include Custom Template File

To include a file in the themes folder in another theme file: will include the file special.php in the current file. Parameters are $slug and $name will load navbar-special.php ie: slug = navbar (required) and name = special (optional)

Read More

Custom Sidebars

Register Custom Sidebars in THEME/functions.php add_action( ‘widgets_init’, ‘my_register_sidebars’ ); function my_register_sidebars() { register_sidebar( array( ‘name’ => __( ‘Primary Widget Area’), ‘id’ => ‘primary-widget-area’, ‘description’ => __( ‘The primary widget area’ ), ‘before_widget’ => ‘ ‘, ‘after_widget’ => ‘ ‘, ‘before_title’ => ‘ ‘, ‘after_title’ => ‘ ‘, ) ); register_sidebar(array( ‘id’ => ‘topwidget’, ‘name’ =>…

Read More