Home Forums Themes Support Formota How to customize Team Member shortcode template in Formota

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8534

    Hi all customer,

    In this topic tutorial, we’ll help you customize template display of  Team Member shortcode in Formota them.

    Step 1: Understand how to customize template via child theme follow this topic:

    How to customize WordPress theme using Child theme

    Step 2: The template for customize is: wp-content/plugins/haru-formota-core/templates/posttypes/teammember/grid.php

    You need to change grid.php to other file depend on settings you set at backend.

    https://prnt.sc/112ywzl

    Example you can change link target by change the code:

    On line 97 from:

    <a href=”<?php echo esc_url( ( $detail_link_insert != ” ) ? $detail_link_insert : get_permalink( $detail_link_id ) ); ?>” target=”_self”>

    to

    <a href=”<?php echo esc_url( ( $detail_link_insert != ” ) ? $detail_link_insert : get_permalink( $detail_link_id ) ); ?>” target=”_blank”>

    On line 113 from:

    <a href=”<?php echo esc_url( $social[‘url’] ); ?>”>

    to

    <a href=”<?php echo esc_url( $social[‘url’] ); ?>” target=”_blank”>

    You can do similar with other shortcode.

    Hope this helps and thanks for reading.

    ******
    Best regards,

    HaruTheme

    • This topic was modified 2 weeks, 6 days ago by admin.
    • This topic was modified 2 weeks, 6 days ago by admin.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.