Viewing 15 replies - 1 through 15 (of 27 total)
  • @zotezo For search functionality you can check with your preferred search form plugin, the native WordPress search form works in AMP as it does non AMP. Some search forms output JavaScript in the front end, so they may not be compatible.

    WP Forms are an example of a plugin that work in AMP as they do non AMP.

    Thread Starter zo

    (@zotezo)

    Actually We want to search product specific to that category page only and can be inserted as a shortcode easily and should be AMP compatible

    @zotezo If it’s a WooCommerce search plugin I haven’t tested any myself. If you do find a WooCommerce search plugin that’s shortcode operated it may work as intended in AMP.

    Thread Starter zo

    (@zotezo)

    WHich form plugin to create contact us form and others form is fully compatible with AMP?

    @zotezo You can use JetPack forms or WP Forms, both work in AMP.

    For other contact forms plugins you can check with the developer.

    Thread Starter zo

    (@zotezo)

    In order to use JetPack forms I have to use the whole jet pack package?

    Which form will support Autopoulate features?

    when a user logged in then his first name last name and email will automatically come in frontend.

    @zotezo When using JetPack there are additional blocks and features which you may find useful.

    Which form will support Auto Populate features?

    I’m not sure, you’ll need to check with the different form providers. If you want to create your own AMP form you could use the amp-autocomplete component.

    While we can’t provide assistance in configuring your own form or components you can use the respective components page on amp.dev for further assistance.

    Thread Starter zo

    (@zotezo)

    Hi,
    WooCommerce Product Search

    https://docs.woocommerce.com/documentation/plugins/woocommerce/woocommerce-extensions/woocommerce-product-search/
    Is it AMP-compatible?

    Thanks

    • This reply was modified 4 years, 7 months ago by zo.

    @zotezo You’ll need to check with the plugin provider, I’m not familiar with this plugin myself.

    Thread Starter zo

    (@zotezo)

    Hi,
    Can we built any function to show functionality of search plugin for non AMP pages only?
    If we open any AMP page then the search function will not display.How to do that by coding?

    Thanks,
    Dwaipayan

    @zotezo You can use CSS (with the #amp selector) to hide the search form in AMP or conditional logic (as below) to display content/features between AMP and non AMP URLs only.

    <?php if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) : ?>
         // Do nothing or AMP replacement
    <?php else : ?>
         // non AMP content .ie Search shortcode
    <?php endif; ?>
    Thread Starter zo

    (@zotezo)

    Hi,
    Thanks for your code.Does the above code need to add in child theme function.php?
    Also what is // Do nothing or AMP replacement
    What can I write here?

    Another issue we are facing now We have added digit plugin for showing Popup for registration and login but it is not supporting in AMP.For example https://www.zotezo.com/in/reviews/gnc-garcinia-cambogia-500mg-90-caps/?amp page as we have added digit image is hiding on top and on below footer some popup entry is showing.
    Issues are here https://writer.zotezo.com/AMP-ISSUE/1.png
    https://writer.zotezo.com/AMP-ISSUE/2.png
    How to resolve this for amp pages?

    Thanks again

    • This reply was modified 4 years, 7 months ago by Yui.
    • This reply was modified 4 years, 7 months ago by zo.
    Thread Starter zo

    (@zotezo)

    Hi,
    We have added this class- class=”digits-login-modal” and after that issue happens.

    
    $account_page_url = wc_get_page_permalink( 'myaccount' );
    if ( $account_page_url ) {
    / translators: %s opening and closing link tags respectively /
    $comment_form['must_log_in'] = '<p class="must-log-in">' . sprintf( esc_html__( 'You must be %1$slogged in%2$s to post a review.', 'woocommerce' ), '<a href="#" class="digits-login-modal">', '</a>' ) . '</p>';
    }
    

    How to disable this class from AMP?
    Thanks,

    • This reply was modified 4 years, 7 months ago by zo. Reason: code change
    Thread Starter zo

    (@zotezo)

    Any update regarding my concern?

    Plugin Author Alberto Medina

    (@albertomedina)

    Please notice that this forum is dedicated to answer questions related to plugin issues. We cannot offer general WordPress or AMP development support. Please address such questions on the appropriate forums.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Category specific search and Form in Amp pages’ is closed to new replies.