• Resolved ashewebmaster

    (@ashewebmaster)


    I am using the Beaver Builder Themer if this is required information. To be clear I want the default for ALL campaign pages to be NO sidebars.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPCharitable

    (@wpcharitable)

    @ashewebmaster thanks for reaching out with this question. By default, Charitable will use the same template as is used in your theme for blog posts (that is why you also see a title/author in that page). The sidebar is there because of your theme primarily.

    Normally we point people to our documented suggestion:

    • To customize the template, you can do the following (note: this requires FTP or similar to be able to make the changes):
    • In your theme folder, look for a file called single.php, or if one doesn’t exist, index.php.
    • Copy and paste the content of this file into a new file called single-campaign.php. You can save this file to your theme or add it to a child theme if you are using one.
    • You can now make the changes to your single-campaign.php file to update what campaign pages look like.

    Because looking at the source code of your page – i’m seeing the content area and the sidebar both have Beaver Builder classes on them (as you said you are using their themer) so this might be more of a Beaver Builder question as to how Beaver Builder can provide a custom template similar how our non-BB instructions would produce a result. We don’t have much knowledge in Beaver Builder in particular, but from the looks of it they already have documentation that seems to address this. See if that links helps, but bottom line is that a custom template is what you’re after.

    Thread Starter ashewebmaster

    (@ashewebmaster)

    Creating a custom template using Beaver Themer doesn’t work. The result is a campaign which only displays the campaign short description and NOTHING else. Instead of this, I’m better off building a page with Beaver Builder and inserting the WP Charitable shortcode where I want the campaign form to appear. This is what I have been doing prior to the addition of the WP Charitable Builder, but I would PREFER to be able to use the WP Charitable Builder to simplify campaign editing for me.

    That said The BEST solution is to create the single-campaign.php file with the following code:

    <?php get_header(); ?>

    <div class="fl-content-full container">
    <div class="row">
    <div class="fl-content col-md-12">
    <?php
    if ( have_posts() ) :
    while ( have_posts() ) :
    the_post();
    get_template_part( 'content', 'page' );
    endwhile;
    endif;
    ?>
    </div>
    </div>
    </div>

    <?php get_footer(); ?>

    This gets me exactly what I was after. JUST the campaign and no sidebar. Thanks for the hint/help.

    Plugin Author WPCharitable

    (@wpcharitable)

    @ashewebmaster Thanks for sharing this. You aren’t the only one using Beaver Builder so we’ll see if there are ways to maybe tweak this. But this is why shortcodes still are effective, yes. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.