Change Pricing Name

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10105
    privatejeep
    Participant

    Is it possible to change “Pricing Name” to say “Trip Name” instead using a child-theme code?

    This is on a page where I have multiple pricing and fixed departures setup.

    Please see this page: https://www.privatejeep.com/itinerary/recon/

    #10185
    Support Team
    Keymaster

    Hello @privatejeep,

    In case if you want to change the text then you have to go through the child theme.

    Now to change the pricing name to trip name add below given CSS by going to your child theme’s functions.php file.

    add_filter( 'gettext', 'wp_travel_change_field_names', 20, 3 );
    /**
     * Change comment form default field names.
     *
     * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
     */
    function wp_travel_change_field_names( $translated_text, $text, $domain ) {
        if ( is_singular() ) {
            switch ( $translated_text ) {
                case 'Pricing Name' :
                    $translated_text = __( 'text', 'wp-travel' );
                    break;
            }
        }
        return $translated_text;
    }

    Hope this helps.

    Regards!!

    #10204
    privatejeep
    Participant

    THANKS! PERFECTION! 🙂

    #10224
    WP Travel Admin
    Keymaster

    Hello @privatejeep,

    Glad we could help you,

    Feel free to reach us for any further query/confusion.

    Regards!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.