Support » Plugin: Apply Online » Divi Theme aol content not showing

  • Resolved grenzenlos

    (@grenzenlos)



    Previous version of Apply Online works with DIVI

    displays the form below, now after upgrading the php command aol_form($post_id); doesn’t work anymore

    so my aol_content filter can’t be used.

    so I had to do a add_filter to the content of aol_ad

    add_filter('the_content', 'my_custom_function', 10, 3); 
    function my_custom_function( $content){
      global $post;
         //Modiy $content here 
        $parentBlock = '<div class="et_pb_section  et_pb_section_99 et_pb_with_background et_section_regular" style="padding: 40px 0;"><div class=" et_pb_row et_pb_row_1" ><div class="et_pb_column et_pb_column_4_4  et_pb_column_1"><div id="et_pb_contact_form_0" class="et_pb_module et_pb_contact_form_container clearfix  et_pb_contact_form_0" data-form_unique_num="0">';
        $formBlock_start ='<div class="et-pb-contact-message"><h3>Application Form</h3></div><div class="et_pb_contact">';
        $nuShort = "[aol_form id='$post->ID']";
    
        $formBlock_end = '</div>';
        $parentBlock_end = '</div></div></div></div></div>';
        if(is_singular('aol_ad')): 
                    $content = $content.$parentBlock.$formBlock_start.$nuShort.$formBlock_end.$parentBlock_end;
        endif;
        
         return $content;
    }
    • This topic was modified 5 months ago by  grenzenlos.
Viewing 1 replies (of 1 total)
  • Plugin Author Farhan Noor

    (@farhannoor)

    Hi,
    Really sorry for any inconvenience caused. How did you show your ads with previous versions which is not working with new version? Can you please share URL of your website.

    Thank you.

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