{"id":2782,"date":"2017-09-06T13:00:47","date_gmt":"2017-09-06T13:00:47","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=2782"},"modified":"2017-09-06T13:00:47","modified_gmt":"2017-09-06T13:00:47","slug":"centering-image-in-voice-of-customer-survey","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=2782","title":{"rendered":"Centering Image in Voice of Customer Survey"},"content":{"rendered":"<p><strong>Requirement<\/strong>: We got business requirement to center voice of the customer survey logo, increase size of the logo and remove survey title. In this article we are going to share step to perform the same.<\/p>\n<p>.<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC9.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2788 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC9-300x39.png\" alt=\"VOC9\" width=\"300\" height=\"39\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC9-300x39.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC9-624x82.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC9.png 635w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Solution<\/strong>: Above requirements can be implemented by modifying existing default theme or we can create new theme as well. In this\u00a0demo we are going to use default theme. We can use following steps to implement above requirement.<br \/>\n1. Navigate to Voice of the Customer -&gt; Themes<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC1.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2783 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC1-300x119.png\" alt=\"VOC1\" width=\"300\" height=\"119\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC1-300x119.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC1-624x248.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/VOC1.png 798w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n2. Open Default theme or any custom theme that we want modify<br \/>\n3. Navigate to CSS area and add our code after existing code<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc12.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2792 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc12-300x155.png\" alt=\"voc12\" width=\"300\" height=\"155\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc12-300x155.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc12.png 552w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n3. Use following code to remove title text and center image and increase image size, you may need to do changes in the size based on the image size.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nh1.h_t_c{ display:none !important; }   \/* hide label*\/\r\nimg.s_i{ max-width:100%; height:auto; width: auto; margin: auto; position: absolute;\r\n              top: 0; left: 0; bottom: 0; right: 0;\r\n              margin-top: 20px !important;  }  \/* increase image size and replace it in center*\/\r\n\r\n<\/pre>\n<p>After adding our code it should look like following:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc11.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2790 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc11-300x127.png\" alt=\"voc11\" width=\"300\" height=\"127\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc11-300x127.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc11.png 504w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>4. Save theme changes.<br \/>\n5. Now open any survey which is using the theme that we have modified, we should be able to see image centered and title text is remove like following:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc2.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2784 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc2-300x112.png\" alt=\"voc2\" width=\"300\" height=\"112\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc2-300x112.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc2-624x234.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/09\/voc2.png 868w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement: We got business requirement to center voice of the customer survey logo, increase size of the logo and remove survey title. In this article we are going to share step to perform the same. . Solution: Above requirements can be implemented by modifying existing default theme or we can create new theme as well. In this\u00a0demo we are going&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=2782\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2772,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,402,456],"tags":[461,459,460],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2782"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2782"}],"version-history":[{"count":3,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2782\/revisions"}],"predecessor-version":[{"id":2794,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2782\/revisions\/2794"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2772"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}