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, 9 months ago by
WCFM Forum.
- AuthorPosts
- April 11, 2020 at 10:41 pm #118118
alexdezi
ParticipantHello! 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 #118338
Sarmistha Chakraborty
MemberHello,
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 #124668
leiti
ParticipantSorry, 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 #124705
Sarmistha Chakraborty
MemberHello,
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 #124730
leiti
ParticipantThis reply has been marked as private.- April 29, 2020 at 10:07 pm #124749
Sarmistha Chakraborty
MemberHello,
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 #124997
leiti
ParticipantThanks, 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 #125182
Sarmistha Chakraborty
MemberHello,
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 #138251
WCFM Forum
MemberAdd 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.