If you have the GeoDirectory 2.0 version, you will notice the homepage does not seem to work. This is because the imported page was for version 1.x and some shortcodes have changed in version 2.0
GeoDirectory 2.0 is a major update and moving to the newer version requires some adjustments.
Note: Starting with KLEO version 4.9.2, you will have the option to import the ready to use Homepage for Geodirectory 2.x.
Also please read Geodirectory migration guide here: https://wpgeodirectory.com/docs-v2/geodirectory/upgrade-from-gdv1/
If you imported the V2 Homepage then the below instructions are already integrated.
How to setup Business Homepage for GeoDirectory 2.0
- Create a new page that you want to use as the directory home.
- At Page Template, select Full Width.
- At the page editor, select TEXT and paste the following code:
COPY CODE
[vc_row padding_top="0"][vc_column][vc_column_text][gd_search]
[gd_categories title="Popular Categories" title_tag="h4" post_type="0" sort_by="count" max_level="1" max_count="all" max_count_child="all"][/vc_column_text][/vc_column][/vc_row][vc_row][vc_column][vc_column_text][gd_listings post_type="gd_place" sort_by="az" title_tag="h2" layout="gridview_onefourth" post_limit="10" add_location_filter="1" with_pics_only="1" view_all_link="1" with_pagination="1" bottom_pagination="1" category="0"][/vc_column_text][/vc_column][/vc_row]
- Now Switch to BACKEND EDITOR of WPBakery
- At the CSS editor, paste the following code:
COPY CODE
.map-category-listing {
right: 0 !important;
left: auto !important;
}
div#gd_map_canvas_directory_cat {
width: 100% !important;
}
@media (min-width: 991px) {
.geodir-categories-container ul {
width: 20%;
}
}
- Now, at the bottom of the page, find Header Content and paste the following code:
COPY CODE
[gd_map map_type='directory' width=100% height=700 search_filter=1 cat_filter=1]
- You can setup the page as your homepage at Settings – Reading / Appearance – Customizer
- You can set it up just as geodir Location page, but never BOTH, this would break the functionality. ( Location page found at GeoDirectory settings – Page )