I am using the Charitable plugin for donations, as well as the Ambassadors add-on to allow supporters to create their own campaigns. The plugin supports use of a single-campaign.php page to be the foundation of the Campaign display pages. I am seeking to implement a random background image at the top of the page, along with transparent header with border, similar to our home page and journal / blog landing pages (https://www.partnersforcare.org and https://www.partnersforcare.org/pfc-blog/ respectively).
Can you provide advice on how to create this behavior, using the single-campaign.php file as the foundation (which starts as a copy of the single.php file from the Enfold directory)?
I was starting down the path of adding a random image plugin Widget, to publish the image at the top of the page, but the default behavior is to display the image below the header and default spacing at the top of the page (https://www.partnersforcare.org/campaigns/nov-10-test-campaign-dbgruberme-com/)
Thank you.
Hey dbgruber,
You could create a Layer Slider slider and call it in your template like
<?php layerslider(1) ?>
If you need further assistance please let us know.
Best regards,
Victoria
Thank you for the suggestion. Not being a PHP developer, I would appreciate some additional guidance. I tried adding this php code in the single-campaign.php file that I created, from the single.php file. No matter where I insert this, then upload and refresh the page, the page fails to render. Removing the line restores the page.
Also, I don’t see how this approach would alter the basic page layout, such as applying the desired transparent header behavior.