Custom Home Page

By default the order and position of elements of [webdirectory] main shortcode is static: frontpanel buttons, search form, categories list, locations list, google map, listings block. But there is a possibility to set up custom layout.

Two ways to build custom home page:

  1. Using shortcodes with custom_home=1 parameter. When you set up [webdirectory custom_home=1] the shortcode displays only listings, no map, no categories list, no locations list, no search form. This special mode allows to build custom directory home page as you wish using additional shortcodes:

    [webdirectory-search custom_home=1] - custom search form gives search results into main [webdirectory custom_home=1] element.

    [webdirectory-categories custom_home=1] - categories shortcode renders corresponding categories navigation menu.

    [webdirectory-locations custom_home=1] - locations shortcode renders corresponding locations navigation menu.

    [webdirectory-map custom_home=1] - Google map with markers from listings.

    [webdirectory-breadcrumbs] - displays breadcrumbs in the place of this shortcode. custom_home=1 parameter does not need.

    [webdirectory-buttons] - renders following buttons: Submit new listing, My bookmarks button and buttons on single listing page: Claim listing, Edit listing, Print listing, Add/Remove Bookmark, Save listing in PDF. custom_home=1 parameter does not need.

    [webdirectory-term-title] - displays category, location or tag title in the place of this shortcode. custom_home=1 parameter does not need.

    [webdirectory-term-description] - displays category, location or tag description in the place of this shortcode. custom_home=1 parameter does not need.

    Lets try to rearrange some elements: move breadcrumbs and buttons to place after the locations table and put down the map. Use shortcodes with custom_home=1 parameter.

    You can build unique layout, wrap and re-structure these shortcodes in WordPress blocks using Gutenberg editor.

  2. Also the plugin allows to build custom home page using directory widgets or third party builders like WPBakery Page Builder, SiteOrigin page builder or Elementor plugin.

Detailed explanation of all shortcodes you can find here.