{"id":288,"date":"2016-07-19T11:31:14","date_gmt":"2016-07-19T09:31:14","guid":{"rendered":"https:\/\/www.nieuwsmarkt.nl\/?p=288"},"modified":"2017-10-01T09:09:58","modified_gmt":"2017-10-01T07:09:58","slug":"responsive-top-hero-image-with-call-out-in-beaver-builder","status":"publish","type":"post","link":"https:\/\/www.nieuwsmarkt.nl\/nl\/blog\/2016\/07\/19\/responsive-top-hero-image-with-call-out-in-beaver-builder\/","title":{"rendered":"Responsive top hero-image with call-out in Beaver Builder"},"content":{"rendered":"<p><strong>Following the previous post on building a hero top image per page and coloring the menu-items seperatly in Dynamik, we will now focus on the same challenge in Beaver Builder.<\/strong><!--more--><\/p>\n<p>We already played a the result until now can already be <a href=\"https:\/\/www.nieuwsmarkt.nl\/nl\/beaverbuilder\/hero-image-and-colored-menu\/\">viewed<\/a>. How did we do this? We use the base of a couple of things we did to <a href=\"https:\/\/www.nieuwsmarkt.nl\/nl\/blog\/2016\/07\/14\/making-the-bridge-theme-in-beaverbuilder\/\">rebuild the Bridge theme<\/a> in Beaver Builder.<\/p>\n<h3>Row<\/h3>\n<p>Like always we start with just a simple row, with the settings we used in our Bridge experiment, so the CSS class top-banner will be needed here as well. Again, set all margins and padding to value 0.<\/p>\n<div id=\"attachment_292\" style=\"width: 712px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-292\" class=\"wp-image-292 size-full\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-row-1.jpg\" alt=\"bb-row-1\" width=\"702\" height=\"564\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-row-1.jpg 702w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-row-1-300x241.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><p id=\"caption-attachment-292\" class=\"wp-caption-text\">Base row settings<\/p><\/div>\n<div id=\"attachment_293\" style=\"width: 712px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-293\" class=\"wp-image-293 size-full\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-row-2.jpg\" alt=\"bb-row-2\" width=\"702\" height=\"565\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-row-2.jpg 702w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-row-2-300x241.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><p id=\"caption-attachment-293\" class=\"wp-caption-text\">CSS class<\/p><\/div>\n<p>Remember on how to access the row settings later (in case you need to). Once the hero image is at position 0, you can only access the row settings on the bottom left corner of the row.<\/p>\n<div id=\"attachment_294\" style=\"width: 850px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-294\" class=\"wp-image-294 size-large\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-access-row-1-1024x569.jpg\" alt=\"bb-access-row-1\" width=\"840\" height=\"467\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-access-row-1-1024x569.jpg 1024w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-access-row-1-300x167.jpg 300w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-access-row-1-768x427.jpg 768w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-access-row-1-1200x667.jpg 1200w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-access-row-1.jpg 1440w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><p id=\"caption-attachment-294\" class=\"wp-caption-text\">Bottom left corner for row settings<\/p><\/div>\n<h3>Smart Banner<\/h3>\n<p>We use the &#8216;smart banner&#8217; <a href=\"https:\/\/www.facebook.com\/groups\/beaveraddons\/\" target=\"_blank\">PowerPack<\/a> module. That module in very flexible in many aspects, as shown in the screenshots below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-295\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner.jpg\" alt=\"bb-smart-banner\" width=\"701\" height=\"566\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner.jpg 701w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-300x242.jpg 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/p>\n<p>The first settings are just for the text and the call to action button. More important are the coices around the image settings. Although this modules allows some nice moving &#8216;effects&#8217; by choosing &#8216;Arrangment &gt; Static&#8217;, we discovered that this setting does not work nicely with our repsonsive requirements.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-296\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-4.jpg\" alt=\"bb-smart-banner-4\" width=\"700\" height=\"567\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-4.jpg 700w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-4-300x243.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>So we now choose for &#8216;Arrangent &gt; Background&#8217; and &#8216;Background Size &gt; Contain&#8217;. That gives our required result on every resolution\/device. However, we will still serach for a solutions where we can be more creative with &#8216;inserting&#8217; the hero-image into the row.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-297\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-2.jpg\" alt=\"bb-smart-banner-2\" width=\"702\" height=\"563\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-2.jpg 702w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-2-300x241.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<p>The module does have some @media points for responsive behaviour. Play for yourself with the settings to get the results you want.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-299\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-3.jpg\" alt=\"bb-smart-banner-3\" width=\"702\" height=\"565\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-3.jpg 702w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-smart-banner-3-300x241.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<h3>Customizer<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-301\" src=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-customizer.jpg\" alt=\"bb-customizer\" width=\"298\" height=\"501\" srcset=\"https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-customizer.jpg 298w, https:\/\/www.nieuwsmarkt.nl\/wp-content\/uploads\/2016\/07\/bb-customizer-178x300.jpg 178w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/>Our final settings will have to be done in the themes customizer. We don&#8217;t like negative values for margins\/padding, but could not find another way (yet) to position the call-out text relative to the center of the image.<\/p>\n<p>The first three &#8216;blocks&#8217; are <a href=\"https:\/\/www.nieuwsmarkt.nl\/nl\/blog\/2016\/07\/14\/making-the-bridge-theme-in-beaverbuilder\/\">explained<\/a> in the Bridge project. Only the last CSS is for setting the call-out text in this module.<\/p>\n<p>.fl-node-xxxxx seems to be the current\/actual CSS class, in which we only added a margin-top of minus 200 pixels.<\/p>\n<h3>Final result<\/h3>\n<p>The results until now can be tested bij going to our <a href=\"https:\/\/www.nieuwsmarkt.nl\/nl\/beaverbuilder\/hero-image-and-colored-menu\/\">cases page<\/a> in the Beaver Builder part. Try the various resolutions in the browser or visite the page via any mobile device. We are not ready yet and try to find other solutions as well. But if you want an hero image per page, this is a noce way to go.<\/p>\n<h3>What is next?<\/h3>\n<p>We did not forget the colors of menu items per page. We are still working on that one, so come back for updates later.<\/p>","protected":false},"excerpt":{"rendered":"<p>Following the previous post on building a hero top image per page and coloring the menu-items seperatly in Dynamik, we will now focus on the same challenge in Beaver Builder.<\/p>","protected":false},"author":2,"featured_media":432,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11,10,9],"class_list":["post-288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-test","tag-beaver-builder","tag-hero-image","tag-menu"],"_links":{"self":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":8,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/posts\/288\/revisions\/304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/media\/432"}],"wp:attachment":[{"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nieuwsmarkt.nl\/nl\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}