Skip to content

Custom Landing Pages PRO

Destination / Activity / Category form — Landing Page picker added by this module

By default, the destination archive (/destination/nepal/) renders a basic catalog of every trip in that destination. With Custom Landing Pages enabled, you can point any WordPress page — built with your usual page builder — to act as the destination, activity, or category landing instead. Use it for SEO-optimised pages, paid-traffic landing pages, partner co-branded pages, or just to ditch the default template.

What you'll need

ThingWhere to get it
Yatra Pro licenseYatra → License
Custom Landing Pages module enabledYatra → Modules → Custom Landing Pages
A taxonomy term to customiseA destination, activity, or trip category you've already created.
A WordPress page built and publishedAny page — Gutenberg, Elementor, Bricks, Divi, your favourite page builder.

Step 1 — Enable the module

  1. Open Yatra → Modules.
  2. Find Custom Landing Pages → toggle on.
  3. A new Landing page picker appears on the edit form of every Destination, Activity, and Trip Category.

Step 2 — Build the WordPress page

Build a normal WordPress page in your page builder of choice. Useful blocks / shortcodes to drop in:

  • [yatra_trips destination="nepal" limit="9"] — render a filtered trip grid.
  • [yatra_search] — drop the trip search box.
  • [yatra_destination_card slug="nepal"] — render the destination's own card content.

See Shortcodes for the full list.

Publish the page. Note its URL (e.g. /discover-nepal/).

  1. Open Yatra → Destinations (or Activities / Categories).
  2. Click the term you want to customise (e.g. Nepal).
  3. Scroll to the Landing page field — searchable dropdown of every published WordPress page.
  4. Pick your page → Save.

Destination edit screen — Landing Page picker with the chosen page

Step 4 — Verify

  1. Open /destination/nepal/ in a private browser window.
  2. Yatra now 301-redirects (or renders, depending on settings) to your custom page at /discover-nepal/.
  3. Catalog links elsewhere on the site (the trip list, the destination card on the trip page, etc.) also point at the new URL.

If you visit the original /destination/nepal/ URL directly, the redirect is in place — you won't see the default archive any more for that destination.

What changes when the module is on

SurfaceBefore moduleAfter module + landing page assigned
Destination archive /destination/nepal/Default Yatra templateRedirects to your custom WordPress page
Destination card link on a trip's public pageDefault archive URLCustom page URL
Activity archive /activity/hiking/Default Yatra templateRedirects to your custom page (when assigned)
Trip category archive /trip-category/adventure/Default Yatra templateRedirects to your custom page (when assigned)
Sitemap.xmlDefault archive URLsCustom page URLs
Open Graph + Twitter Card meta for sharingDefault archive metaYour custom-page meta (from your SEO plugin)

You can selectively customise

You don't have to override every destination / activity / category. Leave the Landing page field empty for terms where the default archive is fine.

Common patterns

Use caseSetup
Marketing-driven destination landingPage with hero, value props, testimonials, embedded [yatra_trips destination="nepal"] block.
Partner co-brand page (white-label deal)Page with partner's logo + curated trip grid + custom CTA. Restrict via WP role-based plugin if you need access control.
Paid-traffic / Google Ads landingSingle trip campaign page with [yatra_trip_book id="123"] directly above the fold.
SEO-optimised "Best of Nepal" content pieceLong-form article + [yatra_trips destination="nepal" featured="featured"] further down the page.

Troubleshooting

Visitors still see the default archive — confirm the module is enabled AND the destination has a Landing page picked. Clear any caching plugin (the redirect uses WordPress 301s and gets cached aggressively).

Redirect loops — your custom page's slug overlaps with the default archive slug. Avoid naming your page /destination/nepal/ or change the destination base under Settings → Permalink.

Trip cards still link to /destination/... — Yatra caches taxonomy link rendering for performance. Re-save the destination, OR run a permalink flush (Settings → Permalinks → Save).

Page content is missing trip listings — make sure the [yatra_trips ...] shortcode is rendered (not displayed as plain text). Some block themes break shortcode rendering inside Group blocks; use a Shortcode block directly.

  • Settings → Permalink — change the base slugs for destinations / activities / categories.
  • Shortcodes — the full list of [yatra_*] shortcodes you can drop into your custom page.
  • Hooks & filtersyatra_custom_landing_page_url, yatra_landing_page_redirect_args.

Where to read more