//http://wplift.com/how-to-add-custom-styles-to-the-wordpress-visual-post-editor // TinyMCE visual editor: Add the Style Dropdown Menu to the second row of visual editor buttons /* NOTE: This technically works (the editor button shows up, and the class can be added to an element in the editor), BUT it does NOT cause the element to be styled according to the CSS rule. Unsure why. Commented out until a solution presents itself. function my_mce_buttons_2($buttons) { array_unshift($buttons, 'styleselect'); return $buttons; } add_filter('mce_buttons_2', 'my_mce_buttons_2'); function my_mce_before_init($init_array) { // Now we add classes with title and separate them with ; $init_array['theme_advanced_styles'] = "Image: No Effect=no-effect;"; // the style(s) live in editor-style.css return $init_array; } add_filter('tiny_mce_before_init', 'my_mce_before_init'); add_editor_style(); */ /* NOTE: IF PAGINATION LOOKS WEIRD AFTER PARENT IS UPDATED, HERE'S WHY. Parent's functions.php is not conducive to child themes. Need to use same function name, but parent's function is not written using "if function_exists()". Therefore, PARENT functions.php MUST BE EDITED. After updating parent, open its functions.php and make sure this function: function html5wp_pagination() ...includes these lines of code: 'prev_text' => __('Previous Page'), 'next_text' => __('Next Page') Kind of defeats the purpose of child theming, I know. Apparently I picked a bad parent. */ // Pagination for posts function my_post_pagination() { echo '
'; }