{"id":15422,"date":"2014-10-14T13:22:09","date_gmt":"2014-10-14T13:22:09","guid":{"rendered":"http:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/"},"modified":"2015-10-12T14:03:35","modified_gmt":"2015-10-12T14:03:35","slug":"bw_autop","status":"publish","type":"oik_shortcodes","link":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/","title":{"rendered":"bw_autop <span class=\"summary\">&#8211; Dynamically re-enable\/disable automatic paragraph generation<\/span>"},"content":{"rendered":"<p>Dynamically re-enable\/disable automatic paragraph generation<!--more--><\/p>\n<p>With the oik-css plugin you can choose to disable automatic paragraph generation across the whole site.\nOr you can control it manually using the [bw_autop] shortcode.<\/p>\n<p>When you first install oik-css (v0.7 or higher) the default is to continue to allow automatic paragraph generation.\ni.e. The checkbox is not ticked.<\/p>\n<p>In this situation, <span class=\"wordpress\"><span class=\"bw_word\">Word<\/span><span class=\"bw_press\">Press<\/span><\/span> will automatically create paragraphs around un-styled content.<\/p>\n<p>Sometimes, especially when there are lots of shortcodes, this causes a problem. The generated HTML becomes unwieldly and difficult to style&#8230; or worse.<\/p>\n<p>When the checkbox is ticked, the automatica paragraph creation logic is disabled.  But this can lead to another problem. If you don&#8217;t specifically add paragraph tags then all the content can become scrunched up.<\/p>\n<p><strong>The nice little space you left has now disappeared!<\/strong><\/p>\n<p>And to compound the problem, when using the Visual editor, you can&#8217;t easily wrap your lines in paragraph tags.\nSelecting\u00a0the Paragraph button simply removes any previous tag and replaces it with nothing.\nAnd if you do type p tags in the Text editor switching back to the Visual editor often causes them to disappear again. <\/p>\n<p>To help in this regard oik-css supplies the bw_autop shortcode to override the global behaviour.<\/p>\n<table class=\"bw_csv \">\n<tr>\n<th>Disabled?<\/th>\n<th>Shortcode in content<\/th>\n<th>Automatic paragraphs?<\/th>\n<\/tr>\n<tr>\n<td><svg class=\"svg_no svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z\"\/><\/g><\/svg> No<\/td>\n<td>None<\/td>\n<td><svg class=\"svg_yes svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z\"\/><\/g><\/svg><\/td>\n<\/tr>\n<tr>\n<td><svg class=\"svg_no svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z\"\/><\/g><\/svg> No<\/td>\n<td>[bw_autop]<\/td>\n<td><svg class=\"svg_yes svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z\"\/><\/g><\/svg><\/td>\n<\/tr>\n<tr>\n<td><svg class=\"svg_no svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z\"\/><\/g><\/svg> No<\/td>\n<td>[bw_autop off]<\/td>\n<td><svg class=\"svg_no svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z\"\/><\/g><\/svg><\/td>\n<\/tr>\n<tr>\n<td><svg class=\"svg_yes svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z\"\/><\/g><\/svg> Yes<\/td>\n<td>None<\/td>\n<td><svg class=\"svg_no svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z\"\/><\/g><\/svg><\/td>\n<\/tr>\n<tr>\n<td><svg class=\"svg_yes svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z\"\/><\/g><\/svg> Yes<\/td>\n<td>[bw_autop]<\/td>\n<td><svg class=\"svg_yes svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z\"\/><\/g><\/svg><\/td>\n<\/tr>\n<tr>\n<td><svg class=\"svg_yes svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z\"\/><\/g><\/svg> Yes<\/td>\n<td>[bw_autop off]<\/td>\n<td><svg class=\"svg_no svg \"  width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 20\"><rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\"\/><g><path d=\"M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z\"\/><\/g><\/svg><\/td>\n<\/tr>\n<\/table>\n<p>Note: The current value of the <em>Disable automatic paragraph creation<\/em> checkbox is Yes<\/p>\n<p>Since we always want you to be able to read this with automatically generated paragraphs we&#8217;re using&#8230;<\/p>\n<div class=\"bw_geshi html5\"><code><br \/>\n&#091;bw_autop]<br \/>\n&nbsp;<\/code><\/div>\n","protected":false},"author":1,"template":"","letters":[],"class_list":{"0":"post-15422","1":"oik_shortcodes","2":"type-oik_shortcodes","3":"status-publish","5":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>bw_autop - Dynamically re-enable\/disable automatic paragraph generation - [oik] plugins.com<\/title>\n<meta name=\"description\" content=\"Use the bw_autop shortcode from the oik-css WordPress plugin to dynamically enable or disable automatic paragraph creation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"bw_autop - Dynamically re-enable\/disable automatic paragraph generation - [oik] plugins.com\" \/>\n<meta property=\"og:description\" content=\"Use the bw_autop shortcode from the oik-css WordPress plugin to dynamically enable or disable automatic paragraph creation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/\" \/>\n<meta property=\"og:site_name\" content=\"[oik] plugins.com\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-12T14:03:35+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/\",\"url\":\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/\",\"name\":\"bw_autop - Dynamically re-enable\/disable automatic paragraph generation - [oik] plugins.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.oik-plugins.com\/#website\"},\"datePublished\":\"2014-10-14T13:22:09+00:00\",\"dateModified\":\"2015-10-12T14:03:35+00:00\",\"description\":\"Use the bw_autop shortcode from the oik-css WordPress plugin to dynamically enable or disable automatic paragraph creation.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Shortcodes\",\"item\":\"https:\/\/www.oik-plugins.com\/oik_shortcodes\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"bw_autop &#8211; Dynamically re-enable\/disable automatic paragraph generation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.oik-plugins.com\/#website\",\"url\":\"https:\/\/www.oik-plugins.com\/\",\"name\":\"[oik] plugins.com\",\"description\":\"WordPress plugins and themes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.oik-plugins.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"bw_autop - Dynamically re-enable\/disable automatic paragraph generation - [oik] plugins.com","description":"Use the bw_autop shortcode from the oik-css WordPress plugin to dynamically enable or disable automatic paragraph creation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/","og_locale":"en_US","og_type":"article","og_title":"bw_autop - Dynamically re-enable\/disable automatic paragraph generation - [oik] plugins.com","og_description":"Use the bw_autop shortcode from the oik-css WordPress plugin to dynamically enable or disable automatic paragraph creation.","og_url":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/","og_site_name":"[oik] plugins.com","article_modified_time":"2015-10-12T14:03:35+00:00","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/","url":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/","name":"bw_autop - Dynamically re-enable\/disable automatic paragraph generation - [oik] plugins.com","isPartOf":{"@id":"https:\/\/www.oik-plugins.com\/#website"},"datePublished":"2014-10-14T13:22:09+00:00","dateModified":"2015-10-12T14:03:35+00:00","description":"Use the bw_autop shortcode from the oik-css WordPress plugin to dynamically enable or disable automatic paragraph creation.","breadcrumb":{"@id":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_autop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Shortcodes","item":"https:\/\/www.oik-plugins.com\/oik_shortcodes\/"},{"@type":"ListItem","position":2,"name":"bw_autop &#8211; Dynamically re-enable\/disable automatic paragraph generation"}]},{"@type":"WebSite","@id":"https:\/\/www.oik-plugins.com\/#website","url":"https:\/\/www.oik-plugins.com\/","name":"[oik] plugins.com","description":"WordPress plugins and themes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oik-plugins.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik_shortcodes\/15422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik_shortcodes"}],"about":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/types\/oik_shortcodes"}],"author":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik_shortcodes\/15422\/revisions"}],"predecessor-version":[{"id":15432,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/oik_shortcodes\/15422\/revisions\/15432"}],"wp:attachment":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/media?parent=15422"}],"wp:term":[{"taxonomy":"letters","embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/letters?post=15422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}