Dev Content Blocks Wordpress Plugin - Rating, Reviews, Demo & Download

Dev Content Blocks Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Not only for developers.
Create content blocks for reusable global content. Supports revisions. With input fields for raw HTML, JS, and CSS without worrying about auto formatting, with an option to also use the usual formatted WordPress tinyMCE editor.

This plugin let’s you create modular content blocks the right way:

  1. Content blocks are a post type.
  2. Allows you to add HTML, CSS, and JS in separate blocks using ACE editor with code completion and error notifications.
  3. WordPress WYSIWYG editor optional.
  4. Revisions(!) You can change your WordPress content, HTML, CSS, and JS and then go back to a previous state the same as you can with the out of the box wordpress post revisions.
  5. Use a shortcode to add the blocks in posts, pages, CPT’s, widgets, and in your theme files.
  6. Preview your content.
  7. Easily import & export using the default WordPress XML import/export tool.

Using content blocks you can create blocks of content to display globally. Change the block and any page the content block is embedded on will reflect the changes.

Use Cases:

  • The WordPress WYSIWYG editor and even the text editor is often unpredictable not adding line breaks when wanted, or losing formatting after editing a post:
    Just create a content block calling it “br” using only the HTML box and put <br> in the box. The shortcode “[dcb name=br]” can then be used whenever you want to make sure that you have a line break.

  • You may have multiple “thank you” pages for different LP’s. When you start new campaigns or want to add new conversion code (or delete an old conversion code), you need to go to each ty page and add/delete the conversion code:
    With modular content you can maintain all your conversion codes in one block and then just put the same shortcode in all ty pages. Also, with the regular WordPress editor you cannot always safely embed conversion code in the post itself and rely on using a separate template. This plugin solves all these issues.

  • Ads:
    Use the content blocks to manage your ads in one place. Create a content block per ad, then use a shortcode in your post content/theme files/widgets where you want to display each ad.

  • There are many more use cases, these were just a few examples. Really you can use content blocks for so many cases and the power it gives you to manage and maintain modular content is necessary on almost any kind of website.

Content Blocks are an easy way for you to create your own shortcodes within the admin and can be used as a minimal shortcode builder.

Dev Content Blocks is created with developers in mind, so while it is simple enough for any WordPress user to use, developers will have added benefit of being able to use raw HTML without it being formatted by wptexturize and wpautop. Think arbitrary HTML in the old text widget (new “Custom HTML” widget). Here paragraphs are NOT added automatically.
Also, as CSS and JS can easily be added here without fear of it losing it’s formatting, this plugin let’s you create and manage your own shortcodes. You can easily create shortcodes (the type that do not accept arguments) and manage them in one place in the admin instead of creating them in the theme or as a separate plugin per shortcode.

You can actually add CSS and JS in the HTML box but, for convenience this plugin has separate optional CSS and JS boxes to allow you to separate your content and code.
The output of the shortcode is:
1. Content from the WordPress editor if it is enabled. (Note, here wptexturize and wpautop are used).
2. Content from the HTML box.
3. The CSS code wrapped in a style tag.
4. The JS code wrapped in a script tag.
(“if(typeof(jQuery) !== ‘undefined’) {$ = jQuery.noConflict();}” is prepended to the script.)

Please Note. Dev Content Blocks lets you use raw HTML, JS, and CSS therefore be careful if copying and pasting from random web pages as in order to allow you maximum control with the content blocks, you will be able to paste JS that is not entirely validated.

Future Versions

  1. Enable/disable each box in the “Content Block Code” section.
  2. More Page builder support
  3. Variables to be passed in the shortcode
  4. Option to enqueue other CSS & JS files when a block is used
  5. Preview in a light box on the admin screen
  6. Options for incorporating and using the featured image
  7. Add an option to change the order of the HTML box vs. the WP editor
  8. Add an option to turn off formatting in the WP editor
  9. Add an option to enqueue the CSS and JS instead of outputting it in the HTML
  10. Widget
  11. Button in tinyMCE to add shortcodes
  12. Show shortcodes in main Dev Content Blocks screen
  13. Localization and language support
  14. When leaving or refreshing the admin page users should receive a prommpt if they have unsaved changes in the code boxes
  15. All above are under consideration and may or may not be added. Please feel free to email me or write a comment here in the reviews or support section with bugs and/or suggestions.

Screenshots

  1. The Content block edit screen

    The Content block edit screen

  2. The code blocks with auto complete

    The code blocks with auto complete

  3. WP content editor disabled

    WP content editor disabled

  4. WP content editor enabled

    WP content editor enabled

  5. Revisions

    Revisions

  6. Output

    Output


Reviews & Comments