Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Emad Az

    (@zemenik)

    Yes, exactly.
    it’s not a plugin. it’s my custom shortcode. i used jQuery to hide this area and it worked. but when i open it with amp, the jQuery code doesn’t work and other elements will be appear.

    the shortcode is:

    function visa_call_fn(){
        ?>
        <script>
            $j = jQuery.noConflict();
            $j(document).ready(function () {
                $j("#sformvisa").hide(function () {
                    $j("#sformsubmit").click(function () {
                        $j("#sformvisa").show();
                        $j("#sformsubmit").hide();
                    });
                });
            });
    
        </script>
    
            <div class="special-offer">
                <h3 class="adra-cta-head head text-center">??? ?? <span class="adra-darsad">??%</span> ??????
                    ???? ????? ?????? ???? ????????!</h3>
                <div class="adra-offer-time">
    
                    <p class="narrow text-center"><i class="glyphicon glyphicon-ok adra-icon-color"></i> ?? ???? ??? ?? ???? ????? ???? ???? ???????? ?????? ???!</p>
                </div>
                <p class="text-center">
                    <a class="btn btn-success btn-outline-rounded blue"
                       target="_blank" id="sformsubmit">??? ??????? ?????? ??????</a>
                </p>
                <div class="row adra-margin-bt" id="sformvisa">
    
                    <div class="col-md-3"></div>
                    <div class="col-md-6 sformbg">
                        <p class="text-center adra-margin-tp"><i class="glyphicon glyphicon-ok adra-icon-color"></i>
                            ?? ??? ??????? ?????? ?? 20 ????? ?????? ?????? ???? ??? ????!</p>
                        <?php echo gravity_form(18, false, false, "", true, 12); ?>
                    </div>
                    <div class="col-md-3"></div>
                </div>
    
            </div>
    <?php }
    
    add_shortcode('visa_call', 'visa_call_fn' );
    Thread Starter Emad Az

    (@zemenik)

    thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)