Customising Template Functions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26002
    RXdev
    Participant

    Hi there,

    I am trying to figure out if it is possible to modify the HTML of the template-functions.php file without modifying the core files?

    I have set up a child theme and added /wp-travel/content-single-itineraries.php and I have successfully overridden the original template file layout and styling. However, I need to find out if it is possible to modify and separate the Itinerary Details block into it’s individual components?

    #26012
    wensolutions
    Keymaster

    Hello @kaynerideexpeditions-com,

    Thank you for using the WP Travel plugin.

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

    remove_action( ‘wp_travel_single_trip_after_title’, ‘wp_travel_single_excerpt’, 1 );
    add_action( ‘wp_travel_single_trip_after_title’, ‘wp_travel_single_excerpt_customized’, 1 );
    function wp_travel_single_excerpt_customized() {
    // Copy the code from ‘wp_travel_single_excerpt’ and customize here
    }

    Hope this helps.

    Thank you.

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