{"id":36,"date":"2017-11-15T09:22:20","date_gmt":"2017-11-15T09:22:20","guid":{"rendered":"https:\/\/holithemes.com\/wp-css-shapes\/?p=36"},"modified":"2017-11-15T09:22:20","modified_gmt":"2017-11-15T09:22:20","slug":"how-to","status":"publish","type":"post","link":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/","title":{"rendered":"How to &#8211; WP CSS Shapes"},"content":{"rendered":"<p>In most websites today, we seen content looks like boxes.<\/p>\n<p>By using &#8220;WP CSS Shape&#8221; plugin, we can create shape for content based on image.<\/p>\n<p>It easy to get started.<\/p>\n<p>add an image using shortcode, with in an inline content,<\/p>\n<p>It makes the content wrap around the image on one side, left or right.<\/p>\n<pre>[shape id=44]<\/pre>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>We can customize the image by using shortcode attributes.<\/p>\n<p><a href=\"https:\/\/holithemes.com\/wp-shapes\/shortcodes\/\" target=\"_blank\" rel=\"noopener noreferrer\">Shrotcode Attributes List<\/a><\/p>\n<h3>Image float<\/h3>\n<p>By default the image float to left and the content wrap on right side of the image.<\/p>\n<p>to make the image float to right,\u00a0 add float=right<\/p>\n<pre>[shape\u00a0id=44 float=\"right\" ]<\/pre>\n<h3>Margin<\/h3>\n<p>To add space between image and content use &#8220;margin&#8221; attribute.<\/p>\n<p>default space is 1em<\/p>\n<p>add css units as suffix &#8211;\u00a0 px, em, %<\/p>\n<pre>[shape id=44 margin=\"20px\" ]<\/pre>\n<h3>Change Image Width, Height<\/h3>\n<p>Its recommend to add Width alone and leave height: auto;<\/p>\n<p>so that image height will change based on width.<\/p>\n<p>if that&#8217;s not happen, there is a custom class &#8220;auto-h&#8221; created to make height: auto. can add that using &#8220;class&#8221;\u00a0 attribute, explained later in this page.<\/p>\n<pre>[shape id=44 width=\"500px\" ]<\/pre>\n<h3>Add class names<\/h3>\n<p>If the image takes the full screen width, then there is no proper space for the content to wrap around of the image on one side.<\/p>\n<p>to fix that we can change the max width of the image to less than 100% of screen width or with in that block.<\/p>\n<p>For that there are some predefined class to change the max width.<\/p>\n<div><strong>img-50<\/strong>\u00a0 \u2013\u00a0 add max width of image to 50%<\/div>\n<div><strong>img-60<\/strong>\u00a0 \u2013\u00a0\u00a0add max width of image to 60%<\/div>\n<div><strong>img-70<\/strong>\u00a0 \u2013\u00a0\u00a0add max width of image to 70%<\/div>\n<div><strong>img-80<\/strong>\u00a0 \u2013\u00a0\u00a0add max width of image to 80%<\/div>\n<div><strong>img-90<\/strong>\u00a0 \u2013\u00a0\u00a0add max width of image to 90%<\/div>\n<div><strong>img-100<\/strong>\u00a0 \u2013\u00a0\u00a0add max width of image to 100%<\/div>\n<div><strong>auto-h<\/strong>\u00a0 \u2013\u00a0 add height: auto for that image.<\/div>\n<p>&nbsp;<\/p>\n<p>so if class &#8220;img-80&#8221; is added, then image takes 80% of that block, and there is space for the content to wrap the image, and now the content can looks in a shape even in small screens.<\/p>\n<p>If the image height is not change based on the width of the image.\u00a0then add &#8220;auto-h&#8221; to class attribute. auto-h or autoh both works.<\/p>\n<pre>[shape id=44 class=\"img-80\" ]<\/pre>\n<p>using &#8220;class&#8221; attribute, can add any class name.<\/p>\n<p>if added image using shape attribute, there are some class which add&#8217;s by default.<\/p>\n<p><strong>shape<\/strong>, <strong>csh-image<\/strong>, <strong>wp-image-&lt;image-id&gt;\u00a0<\/strong> ( if image id 44, then wp-image-44 class added to that image. )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In most websites today, we seen content looks like boxes. By using &#8220;WP CSS Shape&#8221; plugin, we can create shape for content based on image. It easy to get started. add an image using shortcode, with in an inline content, It makes the content wrap around the image on one side, left or right. &nbsp; &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\"> <span class=\"screen-reader-text\">How to &#8211; WP CSS Shapes<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-doc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to - WP CSS Shapes - WP-Shapes<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to - WP CSS Shapes - WP-Shapes\" \/>\n<meta property=\"og:description\" content=\"In most websites today, we seen content looks like boxes. By using &#8220;WP CSS Shape&#8221; plugin, we can create shape for content based on image. It easy to get started. add an image using shortcode, with in an inline content, It makes the content wrap around the image on one side, left or right. &nbsp; &hellip; How to &#8211; WP CSS Shapes Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\" \/>\n<meta property=\"og:site_name\" content=\"WP-Shapes\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-15T09:22:20+00:00\" \/>\n<meta name=\"author\" content=\"holithemes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"holithemes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\"},\"author\":{\"name\":\"holithemes\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/8f88055f5b6caa99de4c77c2589d30ae\"},\"headline\":\"How to &#8211; WP CSS Shapes\",\"datePublished\":\"2017-11-15T09:22:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\"},\"wordCount\":389,\"articleSection\":[\"doc\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\",\"url\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\",\"name\":\"How to - WP CSS Shapes - WP-Shapes\",\"isPartOf\":{\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/#website\"},\"datePublished\":\"2017-11-15T09:22:20+00:00\",\"author\":{\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/8f88055f5b6caa99de4c77c2589d30ae\"},\"breadcrumb\":{\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to &#8211; WP CSS Shapes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/#website\",\"url\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/\",\"name\":\"WP-Shapes\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/8f88055f5b6caa99de4c77c2589d30ae\",\"name\":\"holithemes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7a7b4e36d904a9e49a8b38b6c6a3649e4eef1a5ee0248c5830953e43335a27d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7a7b4e36d904a9e49a8b38b6c6a3649e4eef1a5ee0248c5830953e43335a27d8?s=96&d=mm&r=g\",\"caption\":\"holithemes\"},\"sameAs\":[\"http:\/\/holithemes.com\/plugins\/wp-shapes\"],\"url\":\"https:\/\/holithemes.com\/plugins\/wp-shapes\/author\/holithemes\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to - WP CSS Shapes - WP-Shapes","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:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/","og_locale":"en_US","og_type":"article","og_title":"How to - WP CSS Shapes - WP-Shapes","og_description":"In most websites today, we seen content looks like boxes. By using &#8220;WP CSS Shape&#8221; plugin, we can create shape for content based on image. It easy to get started. add an image using shortcode, with in an inline content, It makes the content wrap around the image on one side, left or right. &nbsp; &hellip; How to &#8211; WP CSS Shapes Read More &raquo;","og_url":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/","og_site_name":"WP-Shapes","article_published_time":"2017-11-15T09:22:20+00:00","author":"holithemes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"holithemes","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/#article","isPartOf":{"@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/"},"author":{"name":"holithemes","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/8f88055f5b6caa99de4c77c2589d30ae"},"headline":"How to &#8211; WP CSS Shapes","datePublished":"2017-11-15T09:22:20+00:00","mainEntityOfPage":{"@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/"},"wordCount":389,"articleSection":["doc"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/","url":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/","name":"How to - WP CSS Shapes - WP-Shapes","isPartOf":{"@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/#website"},"datePublished":"2017-11-15T09:22:20+00:00","author":{"@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/8f88055f5b6caa99de4c77c2589d30ae"},"breadcrumb":{"@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/how-to\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/holithemes.com\/plugins\/wp-shapes\/"},{"@type":"ListItem","position":2,"name":"How to &#8211; WP CSS Shapes"}]},{"@type":"WebSite","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/#website","url":"https:\/\/holithemes.com\/plugins\/wp-shapes\/","name":"WP-Shapes","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/holithemes.com\/plugins\/wp-shapes\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/8f88055f5b6caa99de4c77c2589d30ae","name":"holithemes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/holithemes.com\/plugins\/wp-shapes\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7a7b4e36d904a9e49a8b38b6c6a3649e4eef1a5ee0248c5830953e43335a27d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7a7b4e36d904a9e49a8b38b6c6a3649e4eef1a5ee0248c5830953e43335a27d8?s=96&d=mm&r=g","caption":"holithemes"},"sameAs":["http:\/\/holithemes.com\/plugins\/wp-shapes"],"url":"https:\/\/holithemes.com\/plugins\/wp-shapes\/author\/holithemes\/"}]}},"_links":{"self":[{"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/wp-shapes\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}