Home Forums Pro Themes Travel Master Pro Travel Info

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #123330

    Hi,
    In the box on the right in trip deatils there is a div “wp-travel-trip-meta-info” with the “travel-info” divs inside (https://www.screenpresso.com/=hQ5jd)

    In this place are fields: Destination, Trip Type, Activity and Group size: No size limit.
    In my case it was translated by Loco to Lokalizacje, Forma wypoczynku, Atrakcje w okolicy i w obiekcie, and Polska turystyka: Na polskiej wsi

    Is there any way to: disable “travel-info” Group size and add the new travel info made by WP Travel -> Custom filters called Region turystyczny (slug: region-turystyczny)

    #123390
    wensolutions
    Keymaster

    Hello,

    Please explain in detail your query with specific screenshots and with your site URL so that we can inspect further.

    Regards.

    #123502

    My website: https://przyjaznemiejsca.pl/
    I want to add a Custom filter called Region turystyczny (slug: region-turystyczny)
    here https://nimb.ws/KC7sL4 (red selection)
    and delete from this box “travel-info” Group size (blue selection)

    #123730
    wensolutions
    Keymaster

    Hello,

    Regarding your query, you can add the below-given code (Filter) in your child theme functions.php for the modification.

    remove_action( 'travel_master_pro_trip_after_title', 'wp_travel_single_excerpt', 20 );
    add_action( 'travel_master_pro_trip_after_title', 'wp_travel_single_excerpt_customized', 20 );
    function wp_travel_single_excerpt_customized() {
       // Copy the code from 'wp_travel_single_excerpt' and customize here
    }

    If you have further queries/confusion, let us know.

    Regards.

    #124827

    Hello,
    where this “wp_travel_single_excerpt” is? I couldn’t find it anywhere.
    And what are names of this elements in the php function (group size and the new one I have created).
    Regards

    #124899
    wensolutions
    Keymaster

    Hello,

    The content to be copied under the function “wp_travel_single_excerpt” is inside the path wp-travel > inc > template-functions.php.

    So please copy the content inside this function and edit.

    Let us know if you have any queries further.

    Thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.