Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17999

    I want to add a contact form below each portfolio entry (not using AJAX on overview page – single pages only). I believe this is the code I need to use

    <?php echo do_shortcode(‘[gravityform id=”17″ name=”Submit an enquiry about this forklift” description=”false”]’); ?>

    Could you please let me know if this is the correct php, and more importantly where I need to put it. I tried single-portfolio and loop-portfolio-single but can’t get it to show up. It needs to go below the image/description and above the related entries

    #97865

    Hi,

    You can put it on loop-portfolio-single.php, find this code

    if(has_tag() && is_single())
    {
    echo '<span class="text-sep">/</span><span class="blog-tags minor-meta">';
    echo the_tags('<strong>'.__('Tags: ','avia_framework').'</strong><span>');
    echo '</span></span>';
    }

    Place the shortcode below.

    Regards,

    Ismael

    #97866

    that didn’t work. I can’t get php or html to show up at that location. see page:

    http://secondhandforklifts.com.au/forklift/nissan-2-5-tonne-pj-series-used-forklift/

    the code has been placed where you said, see below

    <span class=’date-container minor-meta meta-color’><?php echo get_the_date(); ?></span>

    <?php

    $meta = avia_portfolio_meta(get_the_ID());

    if($meta)

    {

    echo $meta;

    echo avia_advanced_hr(false, ‘small’);

    }

    the_content(__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”> →</span>’);

    if(has_tag() && is_single())

    {

    echo ‘


    <span class=”blog-tags minor-meta”>';

    echo the_tags(‘‘.__(‘Tags: ‘,’avia_framework’).’<span>’);

    echo ‘</span></span>';

    }

    echo do_shortcode(‘[gravityform id=”17″ name=”Submit an enquiry about this forklift” description=”false”]’);

    ?>

    #97867

    Hey!

    Did you test the shortcode with another template (eg default page template) or even another theme? If it doesn’t work there too maybe the shortcode or do_shortcode() code is wrong.

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Want to insert contact form on every portfolio entry page’ is closed to new replies.