Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Banner image on vendors list clickable
- This topic has 8 replies, 4 voices, and was last updated 4 years, 5 months ago by WCFM Forum.
- AuthorPosts
- April 11, 2020 at 10:41 pm #118118alexdeziParticipant
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?
- April 12, 2020 at 12:37 pm #118338Sarmistha ChakrabortyMember
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>
.PFAThanks.
Attachments:
You must be logged in to view attached files. - April 29, 2020 at 6:23 pm #124668leitiParticipant
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.- April 29, 2020 at 7:43 pm #124705Sarmistha ChakrabortyMember
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.
- April 29, 2020 at 9:08 pm #124730leitiParticipantThis reply has been marked as private.
- April 29, 2020 at 10:07 pm #124749Sarmistha ChakrabortyMember
Hello,
Modify the a tag
<a href="<?php echo $store_url; ?>" style="width: 100%;"></a>
(added the width:100% in a tag)Thanks.
- April 30, 2020 at 2:03 pm #124997leitiParticipant
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
- April 30, 2020 at 11:32 pm #125182Sarmistha ChakrabortyMember
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.
- June 4, 2020 at 12:42 pm #138251WCFM ForumMember
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/
- AuthorPosts
- You must be logged in to reply to this topic.