• Resolved kword

    (@kw56)


    Hello,

    1. I need to add some custom fields (such as yandex map) and delete the secondary content. But I don’t want to make changes in single-trip.php file, it would be better to copy the template to my child theme and make my changes. Is it possible to override the single-trip template by custom one?

    2. Or how to add iframe or script content to custom trip info field?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support WP Travel Engine Support

    (@wptravelenginesupport)

    Hi @kw56,

    1. Yes, it is possible to override the single-trip template using the child theme.

    2. We have a Trip Map Tab for Iframe. You can add the Yandex iframe Map through the Trip Map field. However, trip Info field doesn’t support iframe or scripts.

    Thanks!

    Thread Starter kword

    (@kw56)

    Thanks, I’ve develped my custom single-trip template. Can you advice how to add comments and social sharing?

    Plugin Support WP Travel Engine Support

    (@wptravelenginesupport)

    Hi @kw56,

    You can call the comments template using the below code:

    // If comments are open or we have at least one comment, load up the comment template.

    if ( comments_open() || get_comments_number() ) {
           comments_template('', true);
    }

    You can use any social sharing plugins for social sharing feature.

    Thank You!

    Thread Starter kword

    (@kw56)

    Thanks for your help, you are the best!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom single-trip template’ is closed to new replies.