add the name of the vendor in H1

MultivendorX

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #144724
      l.gan
      Participant

      Hello

      Can you please tell me how can I add the name of the vendor in H1?

      I used this code before:
      <?php add_vendor_after_product_title();?>
      I just added my theme’s “title” to the file and it worked.

      But unfortunately after the update it doesn’t work anymore.
      Could you tell me the correct vendor name embed code?

      Thanks team

    • #144745
      This reply has been marked as private.
    • #144767

      Hi,
      From where do you find this add_vendor_after_product_title function? this function doesn’t exist in our plugin (also not in wcmp). I think your theme developer made some customization for this. Please contact your theme developer.
      Thanks

    • #145282
      l.gan
      Participant

      Thanks Raju, indeed you are right it was my theme setting.

      I contacted them for help and am waiting for a response.

      But can you tell me if you have a short code for adding a brand name to my child theme file Title.php?

      Title.php code:

      if ( ! defined( ‘ABSPATH’ ) ) {
      exit; // Exit if accessed directly.
      }

      $is_quick_view = woodmart_loop_prop( ‘is_quick_view’ );

      ?>

      <h1 class=”product_title entry-title wd-entities-title”>
      <?php if ( $is_quick_view ) : ?>
      “>
      <?php endif; ?>

      <?php the_title(); ?>

      <?php if ( $is_quick_view ) : ?>

      <?php endif; ?>
      </h1>

    • #145451

      Hi,
      We are sorry to say we do not have any shortcodes to display vendor names. But if your current user is a vendor then you can find that vendor title in a below way

      $user = wp_get_current_user();
      $vendor = get_mvx_vendor($user->ID);
      echo $vendor->page_title
      
      Copy

      Thanks

    • #145855
      l.gan
      Participant

      Thanks you helped me a lot

    • #145901

      It seems your query is solved .So we are closing this thread .If you face any issue in future please let us know ,we would love to hear from you.

Viewing 6 reply threads

The topic ‘add the name of the vendor in H1’ is closed to new replies.