Banner image on vendors list clickable

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 5 reply threads
  • Author
    Posts
    • #118118
      alexdezi
      Participant

      Hello! Is it possible to make the whole box or the banner image on the store list page clickable? So that user don’t need to click right on the title?

    • #118338

      Hello,

      For this you need to override the “wcfmmp-view-store-lists-card.php” file in your theme folder.
      The path will be <your theme>/wcfm/store-lists/wcfmmp-view-store-lists-card.php.
      And wrap the banner with <a href="<?php echo $store_url; ?>"></a> .PFA

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #124668
      leiti
      Participant

      Sorry, for us the solution is not working. We don’t have the file located under theme/wcfm/store-lists/wcfmmp-view-store-lists-card-php. It is located under /views/store-lists/wcfmmp-view-store-lists-card-php

      When adding the around the banner, the banner background is not shown and not clickable

      Attachments:
      You must be logged in to view attached files.
      • #124705

        Hello,

        You have to create the “wcfmmp-view-store-lists-card.php” file in your theme folder.
        From “\wp-content\plugins\wc-multivendor-marketplace\views\store-lists” to <your theme>/wcfm/store-lists/wcfmmp-view-store-lists-card.php
        After that wrap the banner with <a href="<?php echo $store_url; ?>"></a> ,then the banner background is not shown and not clickable that means your theme override the store list page style. Then Please provide the page url, so we can check and guide you properly.

        Thanks.

    • #124730
      leiti
      Participant
      This reply has been marked as private.
      • #124749

        Hello,

        Modify the a tag
        <a href="<?php echo $store_url; ?>" style="width: 100%;"></a>
        (added the width:100% in a tag)

        Thanks.

    • #124997
      leiti
      Participant

      Thanks, it’s better but not the whole banner is clickable. The part beside the store name, address, … is not clickable.

      Is it possible to make this clickable too? Same URL as above

      • #125182

        Hello,

        Then you have to add same <a href="<?php echo $store_url; ?>"></a> to wrap store name, address fields etc.
        Example :

        <a href="<?php echo $store_url; ?>">
          <p class="store-phone">
            <i class="wcfmfa fa-envelope" aria-hidden="true"></i> <?php echo esc_html( $store_user->get_email() ); ?>
          </p>
        </a>

        Thanks.

    • #138251
      WCFM Forum
      Keymaster

      Add this line to your site –

      add_filter( 'wcfmmp_is_allow_full_store_card_linked', '__return_true' );

      Add custom code(s) to your child theme’s functions.php
      In case you do not have child theme then add those using this plugin –¬†https://wordpress.org/plugins/code-snippets/

Viewing 5 reply threads
  • You must be logged in to reply to this topic.