Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @zemenik,

    Do you want to remove this https://take.ms/QIVtz

    Can you please tell me which plugin you are using to add the shortcode for this?

    Do let me know.

    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' );
    Plugin Contributor ampforwp

    (@ampforwp)

    Hello @zemenik,

    If you want to remove this content see this screenshot https://take.ms/IQduuw

    Then please copy and paste CSS code in the custom CSS section.

    Here is the css code: .special-offer {display: none;}

    You can find custom CSS section in the following setting

    Dashboard>AMP>design>Global>custom css section [see this screenshot: https://take.ms/PhFr9%5D

    • This reply was modified 6 years, 10 months ago by ampforwp.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress shortcodes issues’ is closed to new replies.