20 ways to improve the experience of content editing in wordpress - wordcamp manchester 2015

26
20 ways to improve the experience of content editing in WordPress #wcmcr @jasoncsking

Upload: jason-king

Post on 14-Apr-2017

983 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

20 ways to improve the experienceof content editing in WordPress

#wcmcr @jasoncsking

Page 2: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

These code snippets can go in your theme's functions.php file

Page 3: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

IMPROVING THE POST EDITOR

Page 4: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

1. Remove H1, H5, H6

http://www.jowaltham.com/modify-tinymce-editor/

Page 5: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

2. Excerpt length counter

http://premium.wpmudev.org/blog/character-counter-excerpt-box/

Page 6: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

3. Make it easy to apply styles

https://codex.wordpress.org/TinyMCE_Custom_Styles

Page 7: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

array( 'title' => 'Lead paragraph', 'selector' => 'p', 'classes' => 'lead','wrapper' => true,

), array(

'title' => 'Normal Button', 'selector' => 'p > a','classes' => 'btn btn-

primary','wrapper' => false,

),

Page 8: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

4. Remove buttons from the toolbar

www.kevinleary.net/customizing-tinymce-wysiwyg-editor-wordpress/

Page 9: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

5. Or add extra buttons

premium.wpmudev.org/blog/display-the-full-tinymce-editor-in-wordpress/

Page 10: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

6. WYSIWIG post editor

codex.wordpress.org/Function_Reference/add_editor_style

Page 11: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

7. Add more filters to Media Library

http://bit.ly/1hgqI3M

Page 12: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

8. Create useful shortcodes

// [phone] = telephone icon

function scaffold_shortcode_phone_icon() {$phone_icon = "<i class='fa fa-phone-square fa-lg

shortcode-icon'></i> ";return $phone_icon;}

add_shortcode( 'phone', 'scaffold_shortcode_phone_icon' );

https://generatewp.com/shortcodes/

Page 13: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

IMPROVING THE DASHBOARD

Page 14: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

9. Hide Appearance > Editor

define( 'DISALLOW_FILE_EDIT', true );

Page 15: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

10. Remove default widgets

paulund.co.uk/how-to-remove-default-wordpress-widgets

Page 16: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

11. Add custom post types to At a Glance

http://bit.ly/1JKH0sn

Page 17: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

12. Custom dashboard widgets

wpbeginner.com/wp-themes/how-to-add-custom-dashboard-widgets-in-wordpress/

Page 18: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

13. Remove dashboard widgets

http://bit.ly/1LoBbIt

Page 19: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

14. Add CSS to the dashboard

css-tricks.com/snippets/wordpress/apply-custom-css-to-admin-area/

add_action('admin_head', 'my_custom_fonts');

function my_custom_fonts() { echo '<style> body, td, textarea, input, select { color: pink; } </style>';}

Page 20: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

15. Make Screen Options stand out

#screen-meta-links .show-settings { background-color: red; color: #fff;

font-weight: bold; }

Page 21: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

PLUGINS

Page 22: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

16. Put these code snippets in your own plugin

https://codex.wordpress.org/Writing_a_Plugin

Page 23: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

17. Or find existing plugins

Page 24: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

18. Highlight code syntax

wordpress.org/plugins/html-editor-syntax-highlighter/

Page 25: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

19. Theme Customiser

Watch Dave Green's talk at #wcmcr

Page 26: 20 ways to improve the experience of content editing in WordPress - WordCamp Manchester 2015

20. Slide not found

404