Adding a website LINK to vendor page

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 2 reply threads
  • Author
    Posts
    • #45241
      zachavez
      Guest

      Thanks for your earlier help on how to list a website on the vendor store page. Is there a way to make that url a hyperlink?

      Thanks!

    • #45268
      WCFM Forum
      Keymaster

      Hi,

      How you are showing that field on store page? Using short code?

      Thank You

    • #45269
      WCFM Forum
      Keymaster

      Hi,

      Kindly add this code to your child theme’s functions.php –

      add_filter( 'wcfmmp_additional_store_info', function( $data_value, $data_info, $store_id ) {
      	if( $data_info == 'website' ) {
      		$data_value = '<a href="'.$data_value.'" target="_blank">'.$data_value.'</a>';
      	}
      	return $data_value;
      }, 50, 3 );

      Well, if you have set field name something else then change “website” accordingly in the code.

      Thank You

Viewing 2 reply threads
  • The topic ‘Adding a website LINK to vendor page’ is closed to new replies.