• Resolved darrmik

    (@darrmik)


    How do I set an image for the “Give Placeholder Image?” When I set the Featured Image it also changes the Header Image.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    It looks like your theme isn’t playing nicely with our template. The placeholder is intended to be set by the Featured image. But if that is not working to your liking, I’d suggest that you create a new page, and use our Shortcode Builder to insert forms into existing pages. That would result in more flexibility for you.

    But if you really want those Give Single Form pages to work for your purposes, use this code below. I was able to find your theme online and test it and this will make the Give form work within the proper width and markup of your theme:

    /**
     * Custom Give Single Template Wrapper Start
     */
    function tasman_custom_give_start_wrapper() {
        echo '<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    		<div class="entry-content">';
    }
    add_filter( 'give_default_wrapper_start', 'tasman_custom_give_start_wrapper' );
    /**
     * Custom Give Single Template Wrapper End
     */
    function tasman_custom_give_end_wrapper() {
        echo '</div></main><!-- #main -->
    	</div><!-- #primary -->';
    }
    add_filter( 'give_default_wrapper_end', 'tasman_custom_give_end_wrapper' );

    If you need guidance implementing custom PHP functions on your website, we have this guide here: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    But, the issue with the featured images on those pages will remain the same. That’s just how your theme handles featured images.

    Thanks!

    Thread Starter darrmik

    (@darrmik)

    Using the short code got the results I was looking for.

    Thank you

    Darrmik

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set “Give Placeholder Image”’ is closed to new replies.