Equity Posted September 27, 2022 at 06:21 AM Share Posted September 27, 2022 at 06:21 AM Hi Alejandro, Using the below vivaz hook for background image how do I make this work only for a single page, not all pages? When I do this by hard coding to the template "Background Images" as a param setting, the template recognizes this only for the menu item set on the individual background, not all pages, but the hook shows the css on all pages. Guessing I need a condition using the page <body> class to make this work but have no idea how to get it. AND: For some reason I can't find our discussion on this. Thanks Daniel Clickfwd\Vivaz\Vivaz::filter('showcase:background_image_css.header', function ($css, $bgImage) { $css['background-image'] = 'linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), '. $css['background-image']; return $css; }); Link to comment
Solution Alejandro Posted September 27, 2022 at 11:16 AM Solution Share Posted September 27, 2022 at 11:16 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Equity Posted September 27, 2022 at 04:04 PM Author Share Posted September 27, 2022 at 04:04 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 27, 2022 at 05:37 PM Share Posted September 27, 2022 at 05:37 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Equity Posted September 28, 2022 at 04:11 AM Author Share Posted September 28, 2022 at 04:11 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts