{"id":8644,"date":"2023-07-05T14:37:36","date_gmt":"2023-07-05T11:37:36","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=7275"},"modified":"2026-10-08T10:35:07","modified_gmt":"2026-10-08T07:35:07","slug":"compare","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/header-elements\/compare\/","title":{"rendered":"Compare"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ada002ed0d6b&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ada002ed0d6b\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2023\/07\/Screenshot-2023-07-05-at-14.38.21.png\" alt=\"Compare element displayed inside a Blocksy header\" class=\"wp-image-7284\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">The Compare element in action.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Compare<\/strong> element gives WooCommerce customers quick access to their current product comparison list directly from the website header. It works together with Blocksy Pro&#8217;s <a href=\"https:\/\/creativethemes.com\/blocksy\/docs\/woocommerce\/compare-view\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Compare View<\/strong><\/a> module from the Shop Extra extension.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To make the element available, navigate to <strong>Blocksy \u2192 Extensions \u2192 Shop Extra<\/strong> and activate the <strong>Compare View<\/strong> module. You can then open the <strong>Customiser \u2192 Header<\/strong> and drag the <strong>Compare<\/strong> element into the desired header row.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Selecting the element on the front end gives visitors access to the comparison interface configured through the Compare View module.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Granular Controls<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-995f960e wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ada002ed4785&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ada002ed4785\" class=\"wp-block-image size-full has-lightbox wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/creativethemes.com\/blocksy\/wp-content\/uploads\/2023\/07\/Screenshot-2023-07-05-at-14.38.33.png\" alt=\"Configuration options for the Blocksy Compare header element\" class=\"wp-image-7288\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Compare element configuration options.<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<h3 class=\"wp-block-heading\">Icon Source<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the icon used to represent the Compare element in the header. Blocksy provides three built-in designs, or you can upload a custom SVG icon to match the rest of your website&#8217;s interface.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Icon Size<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adjust the size of the Compare icon independently for the available responsive device views, allowing it to fit naturally into desktop, tablet and mobile header layouts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Icon Badge<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the <strong>Icon Badge<\/strong> to display the number of products currently stored in the visitor&#8217;s comparison list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The badge updates as products are added to or removed from the comparison queue, giving visitors an immediate indication of how many products are ready to compare.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Label Visibility<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Control whether the element&#8217;s text label is displayed on <strong>desktop<\/strong>, <strong>tablet<\/strong> and <strong>mobile<\/strong> devices independently. This lets you use a descriptive label where space allows while keeping a compact icon-only presentation on smaller screens.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Compare element gives WooCommerce customers quick access to their current product comparison list directly from the website header. It works together with Blocksy Pro&#8217;s Compare View module from the Shop Extra extension. To make the element available, navigate to Blocksy \u2192 Extensions \u2192 Shop Extra and activate the Compare View module. You can then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[124],"class_list":["post-8644","documentation","type-documentation","status-publish","hentry","doc_categories-header-elements"],"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/8644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=8644"}],"version-history":[{"count":3,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/8644\/revisions"}],"predecessor-version":[{"id":15253,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/8644\/revisions\/15253"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=8644"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=8644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}