Edit Side bar

includes / default-widgets / line 314

 

====================

 

 

HOW TO ADD GALLERY

 

  1. Go to Dashboard
  2. Go to Gallery / Add Gallery
  3. Create Gallery, name it and add photos to it
  4. The go to Pages / Add New
  5. Create the new page and add the new Gallery to it – Add Gallery button is in tool bar – see here
  6. Then select what type of Gallery – see here
  7. Now we need to Add link to the Category page
  8. Just drag the Gallery to the left side to activate – or drag it back to right side to deactivate – see here
  9. 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');