Under home - ready themes - images tried to deactivate the hero image section but it stays put. Was able to deactivate storefront image just fine. Also trying to disable the whole top bar without messing with the css file. Fresh install of shadows to dev store. Trying to do it the right way for future upgrading ease rather than going into the css and deleting it.
Announcement
Collapse
No announcement yet.
Inactived hero image section but it stays.
Collapse
X
-
Looks like I was checking the wrong conditional for the storefront here image. If you change that block to the following code, you will be able to toggle its display through the administration portal.
Code:<mvt:item name="readytheme" param="Load_Image('storefront_hero_image', g.storefront_hero_image)" /> <mvt:if expr="g.storefront_hero_image:active"> <mvt:if expr="g.storefront_hero_image:link_type NE 'N'"> <mvt:if expr="g.storefront_hero_image:link_type EQ 'G'"> <mvt:do file="g.Module_Feature_TUI_DB" name="l.success" value="Page_Load_Code( g.storefront_hero_image:link_dest, l.settings:rt_g )" /> <mvt:do file="g.Module_Feature_URI_UT" name="g.storefront_hero_image:uri" value="Store_Page_URL(l.settings:rt_g, NULL)" /> <mvt:elseif expr="g.storefront_hero_image:link_type EQ 'C'"> <mvt:do file="g.Module_Library_DB" name="l.success" value="Category_Load_Code( g.storefront_hero_image:link_dest, l.settings:rt_c )" /> <mvt:do file="g.Module_Feature_URI_UT" name="g.storefront_hero_image:uri" value="Store_Category_URL(l.settings:rt_c, NULL)" /> <mvt:elseif expr="g.storefront_hero_image:link_type EQ 'P'"> <mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code( g.storefront_hero_image:link_dest, l.settings:rt_p )" /> <mvt:do file="g.Module_Feature_URI_UT" name="g.storefront_hero_image:uri" value="Store_Product_URL(l.settings:rt_p, NULL)" /> <mvt:elseif expr="g.storefront_hero_image:link_type EQ 'U'"> <mvt:assign name="g.storefront_hero_image:uri" value="g.storefront_hero_image:link_dest" /> <mvt:else> <mvt:assign name="g.storefront_hero_image:uri" value="NULL" /> </mvt:if> <mvt:else> <mvt:assign name="g.storefront_hero_image:uri" value="NULL" /> </mvt:if> <section class="o-layout"> <div class="o-layout__item"> <mvt:if expr="g.storefront_hero_image:link_dest"> <a class="x-hero" href="&mvt:global:storefront_hero_image:uri;" target="&mvt:global:storefront_hero_image:link_targ;"> <img src="&mvt:global:storefront_hero_image:image;" alt="&mvt:global:storefront_hero_image:image_alt;"> </a> <mvt:else> <span class="x-hero"> <mvt:item name="readytheme" param="image( 'storefront_hero_image' )" /> </span> </mvt:if> </div> </section> <br> </mvt:if>
Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment