Edit Side bar
includes / default-widgets / line 314
====================
HOW TO ADD GALLERY
- Go to Dashboard
- Go to Gallery / Add Gallery
- Create Gallery, name it and add photos to it
- The go to Pages / Add New
- Create the new page and add the new Gallery to it – Add Gallery button is in tool bar – see here
- Then select what type of Gallery – see here
- Now we need to Add link to the Category page
- Just drag the Gallery to the left side to activate – or drag it back to right side to deactivate – see here
- Voila ~
Dynamic WP side bar
http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/
Stop removing iframe tags in Design view
Put this code at the bottom of the functions.php in your theme folder
function mytheme_tinymce_config( $init ) {
$valid_iframe = 'iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]';
if ( isset( $init['extended_valid_elements'] ) ) {
$init['extended_valid_elements'] .= ',' . $valid_iframe;
} else {
$init['extended_valid_elements'] = $valid_iframe;
}
return $init;
}
add_filter('tiny_mce_before_init', 'mytheme_tinymce_config');