Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Can I get a link to your site so I can see the problem live?

    Thread Starter Yurasik1

    (@yurasik1)

    Thread Starter Yurasik1

    (@yurasik1)

    Do you need admin access info?

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    No, we really don’t want Admin access at all.

    This looks like a problem with your theme. Is this a free theme? Can you point me to where I might be able to access it? There’s a relatively simple workaround to get Give to work with your theme, but I have to see the theme files to provide that to you.

    Thread Starter Yurasik1

    (@yurasik1)

    Thread Starter Yurasik1

    (@yurasik1)

    Thread Starter Yurasik1

    (@yurasik1)

    Matt,
    Any news? Because I promised the client to go live tomorrow.

    Yury

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Unfortunately I don’t have access to that theme and I don’t know that theme author to reach out to him/her.

    Are you familiar with working with PHP at all? The basic idea is that you need to hook into our give_default_wrapper_start() and give_default_wrapper_end() hooks to tell Give to use your theme’s wrapping elements.

    Are you familiar with actions and filters in WordPress and inspecting your theme files for the appropriate wrapper divs?

    If so, look at your single.php file, and if there are any div’s before and/or after the while ( have_posts() ) : the_post(); and the endwhile; then let me know and I can provide you with the function you need to use.

    Thread Starter Yurasik1

    (@yurasik1)

    Matt,

    That’s the single.php file
    <?php

    /*

    * Template Name: Page (Post style)

    * Description: Create the famous One Page site with multiple sections and jump-to-section navigation

    */

    get_template_part(‘superior’);

    get_header();

    get_template_part(‘breadcrumbs’);

    if ( have_posts() ) :

    while ( have_posts() ) : the_post();

    $title_post = get_the_title();

    if($title_post==””){

    $title_post = ‘(Untitled)’;

    }

    $subtitle_post = “”;

    if(get_post_meta( $post->ID, ‘subtitle_post’, true )!= ”){

    $subtitle_post = get_post_meta( $post->ID, ‘subtitle_post’, true );

    }

    $meta_class = ”;

    if (!in_array(“social_meta_icons”, generosity_option(‘meta_posts’))){

    $meta_class = ‘meta_has_not_icons’;

    }

    $hearts = get_post_meta(get_the_ID(),’hearts’, true);

    if($hearts==”) $hearts = 0;

    $shares = get_post_meta(get_the_ID(),’shares’, true);

    if($shares==”) $shares = 0;

    ?>

    <!– General Container –>

    <div class=”all-content blog-simple”>

    <div class=”section blog-classic” >

    <div class=”container”>

    <!– Row of blog-sidebar –>

    <div class=”row”>

    <!– Blog post Row –>

    <div class=”col-md-8 main-block”>

    <!– Post Title –>

    <div class=”block-title”><h1><?php echo esc_html($title_post) ?></h1></div>

    <!– Featured image –>

    <div class=”featured-wrap”>

    <?php if(generosity_option(‘auto_thumbnail_post’) && has_post_thumbnail()): ?>

    <?php the_post_thumbnail(‘generosity_blog-post-thumbnail’) ?>

    <?php endif; ?>

    </div>

    <!– The post –>

    <div class=”blog-post”>

    <!– post meta –>

    <div class=”blog-item-right”>

    <div class=”blog-item-date”>

    <span class=”blog-item-number”><?php the_time(esc_html__(‘j’,’generosity’)) ?> </span>

    <span class=”blog-item-month”><?php the_time(esc_html__(‘M’,’generosity’)) ?> </span>

    </div>

    <?php if (in_array(“n_comments”, generosity_option(‘meta_posts_right’))): ?>

    <div class=”meta-post”>

    <span class=”meta-post-icon”>“><i class=”fa fa-comments-o”></i></span>

    <span class=”meta-post-n”><?php comments_number( esc_html__(‘0′,’generosity’), esc_html__(‘1′,’generosity’), esc_html__(‘%’,’generosity’) ); ?></span>

    </div>

    <?php endif; ?>

    <?php if (in_array(“shares”, generosity_option(‘meta_posts_right’))): ?>

    <div class=”meta-post”>

    <span class=”meta-post-icon meta-post-shares” data-postid=”<?php the_id() ?>”><i class=”fa fa-share-square-o”></i></span>

    <span class=”meta-post-n”><?php echo esc_attr($shares) ?></span>

    </div>

    <?php endif; ?>

    <?php if (in_array(“hearts”, generosity_option(‘meta_posts_right’))): ?>

    <div class=”meta-post”>

    <span class=”meta-post-icon meta-post-heart” data-postid=”<?php the_id() ?>”><i class=”fa fa-heart”></i></span>

    <span class=”meta-post-n”><?php echo esc_attr($hearts) ?></span>

    </div>

    <?php endif; ?>

    </div><!– post meta end –>

    <?php if($subtitle_post != “”): ?>

    <!– subtitle post –>

    <h3 class=”subtitle-post”><?php echo esc_html($subtitle_post) ?></h3>

    <?php endif; ?>

    <!– The post body –>

    <div class=”body-post”>

    <div class=”body-post-in”>

    <?php the_content() ?>

    <?php

    wp_link_pages( array(

    ‘before’ => ‘<div class=”pagination”><div class=”navigate-page”><span class=”page-links-title”>’ . esc_html__( ‘Pages:’, ‘generosity’ ) . ‘</span>’,

    ‘after’ => ‘</div></div>’,

    ‘link_before’ => ‘<span>’,

    ‘link_after’ => ‘</span>’,

    ) );

    ?>

    </div>

    <div class=”clearfix”></div>

    <!– post meta at bottom post –>

    <div class=”sub-meta <?php echo esc_attr($meta_class) ?>”>

    <?php if (in_array(“user”, generosity_option(‘meta_posts’))): ?>

    <span class=”meda-i”><?php esc_html_e(‘Posted by: ‘,’generosity’) ?><?php the_author_posts_link(); ?></span>

    <?php endif; ?>

    <?php if (in_array(“category”, generosity_option(‘meta_posts’))&&!is_page()): ?>

    <?php

    $the_cat = get_the_category();

    $cat_name = ”;

    $cat_link =”;

    if(count($the_cat)>0){

    $cat_name = $the_cat[0]->cat_name;

    $cat_link = get_category_link( $the_cat[0]->cat_ID );

    }

    ?>

    <?php if($cat_name != ”): ?>

    <span class=”meda-i”><?php esc_html_e(‘Category: ‘,’generosity’) ?>“><?php echo esc_attr($cat_name) ?></span>

    <?php endif; ?>

    <?php endif; ?>

    <?php if (in_array(“tags”, generosity_option(‘meta_posts’))): ?>

    <span class=”meda-i”><?php esc_html_e(‘Tags: ‘,’generosity’) ?><?php $posttags = get_the_tags();

    $max_tags = 1;

    if(generosity_option(‘max_tags’)!=”){

    $max_tags = generosity_option(‘max_tags’);

    }

    $countag=0;

    if ($posttags) {

    foreach($posttags as $tag) {

    $countag++;

    if ($countag<=$max_tags) {

    if($countag<=2) echo ‘, ‘;

    echo ‘term_id)).'”>’.$tag->name.’‘;

    }

    }

    }

    ?></span>

    <?php endif; ?>

    <?php if (in_array(“social_meta_icons”, generosity_option(‘meta_posts’))): ?>

    <!– social icons –>

    <div class=”share-excerpt”>

    <?php esc_html_e(‘share:’,’generosity’) ?>

    <?php

    get_template_part( ‘widgets/share-post’);

    ?>

    </div>

    <?php endif; ?>

    </div>

    </div><!– body-post end –>

    </div><!– body-post-block end –>

    <!– Comments list –>

    <?php if(!is_page()|| (is_page()&&!generosity_option(‘h_comments_page’))): ?>

    <?php comments_template() ?>

    <?php endif; ?>

    </div><!– Blog post Row end –>

    <!–Side Bar–>

    <?php get_sidebar() ?>

    <!–Side Bar End–>

    </div><!– Row of post-sidebar end –>

    </div><!– container end –>

    </div><!– section end –>

    </div><!– general container end –>

    <?php endwhile; ?>

    <?php endif; ?>

    <?php get_footer() ?>

    <?php get_template_part(‘inferior’); ?>

    Thread Starter Yurasik1

    (@yurasik1)

    Also, the name of the author is Dexter.
    His email: dexter00x@gmail.com

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Thanks for including this here, but I don’t want to provide you code based on this. I’m contacting him about this issue. If I can get access to the theme I can help much more specifically. I’ll keep you posted.

    Thread Starter Yurasik1

    (@yurasik1)

    Matt,

    I received an email from Dexter, theme autor:
    Hi Yury, I have provided my theme to the author of Give in order to improve the integration with his plugin
    regards.

    Will you have an update for me soon?

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Working on it now. Will get back to you soon.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    OK, the single.php file in this theme has so much PHP logic and additional markup that creating a unique template just for Give was the best option.

    Download this file:
    https://www.dropbox.com/s/5e82pftd3rwk27e/give.php?dl=0

    Then place it in your theme’s root folder like this:
    /wp-content/themes/generosity/give.php

    The result should look something like this:
    https://www.dropbox.com/s/nan0oy3xm1dgpgo/2016-08-12%2011_41_33-New%20notification.png?dl=0

    Let me know how that goes for you.

    I’m also following-up with the Theme author to see if he can integrate Give more natively in his theme. This is just a simple fix, but there’s a lot more than can be done to make Give look really excellent with this theme.

    Thanks!

    Thread Starter Yurasik1

    (@yurasik1)

    Hello Matt,

    Thank you very much. It looks great. How do I remove a sidebar with posts, categories and etc…

    Also goal is very cool future of donation form, but
    they already were able to collect some money without the website.
    I have learned that goal widget is based on goal amount and income collected. Is there a way to manually override the income?

    I will highly recommend to Dexter to switch to use your plugin. Great job!

    Regards

    Yury

    Regards

    Yury

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Offline Donation is not working’ is closed to new replies.