Is it possible to add a "Go Back" button to single locations?

This topic contains 21 replies, has 3 voices, and was last updated by  alchemi design 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #525598

    alchemi design
    Expired Member
    Post count: 46

    Hi there,

    When you click on a single location (example location page:http://destinationsouthernmaryland.alchemidesign.com/places/annmarie-sculpture-garden-arts-center/) from our listings pages (example parent listings page: http://destinationsouthernmaryland.alchemidesign.com/explore-legends/museums-historical-sites/), there is no way to go back to the listings page from the individual location except the browser back button.

    Is there any way I can add a “back to listings” page that will take them to the parent category listing page for each listing? When visitors click on listings from google, we want for them to easily navigate further into the website or understand that there are more listings than just the page they visit, which is why this would be helpful.

    Thanks!

    #525642

    Alex Rollin
    Moderator
    Post count: 27815

    Unfortunately that isn’t available right now but I have taken it up as a suggestion.

    For now it would require a customization. A quick search revealed this is relatively easy to do with a snippet:
    https://www.google.com/search?q=wordpress+go+back+shortcode&oq=wordpress+go+back+shortcode

    #525797

    alchemi design
    Expired Member
    Post count: 46

    Thank you, unfortunately the customizations I’ve been able to find only go back to the previous page of one’s history rather than going to a specific page or listings. I’m hopeful that it will be incorporated into a future update of GeoDirectory!

    #525821

    Alex Rollin
    Moderator
    Post count: 27815

    Ah, ok, I understand.

    For that purpose, breadcrumbs are created. It looks like you aren’t using breadcrumbs.

    If your theme doesn’t have them, Yoast or Rank Math, both SEO plugins, have a shortcode that will add breadcrumbs for you. They can really help users browse and find their way back.

    You should also consider adding category links to all the Gd template pages and the location switcher if you want to help users navigate to specific locations like a town or city.

    #525828

    alchemi design
    Expired Member
    Post count: 46

    We’re using Ocean WP, do you happen to know if they have breadcrumbs? We also wouldn’t want breadcrumbs on all pages, likely just on listing detail pages.

    How can we go about adding category links to GD template pages or the location switcher?

    We previously had the GD Category widget in the sidebar on single listing pages, clicking on the category links would only take users to related listings, and for some categories, nothing would show up at all. Is that normal?

    #525909

    Alex Rollin
    Moderator
    Post count: 27815

    Looks like OceanWP recommends Yoast for SEO.

    For adding GD Categories to the detail page, the default for the shortcode should work.

    
    
    
    [gd_categories post_type="0" title_tag="h4" sort_by="count" max_level="1" max_count="all" max_count_child="all"]

    If you don’t want the links in the categories to have location, you can disable that feature in the Locations tab

    Look for the option “Archive URLs on the details page”

    https://wpgeodirectory.com/docs-v2/addons/location-manager/

    You can also use GD Post Meta for categories.

    #526022

    alchemi design
    Expired Member
    Post count: 46

    Thank you, I did disable the feature in the Locations tab!

    Regarding the breadcrumbs, when I go into Yoast and enable breadcrumbs, I see the panel visible in the attached screenshot.

    What do I need to input for a breadcrumb trail to appear on GD Detail pages? I don’t want breadcrumbs on the other pages.

    #526073

    Alex Rollin
    Moderator
    Post count: 27815

    Add the shortcode to the details or archive template or other pages.

    https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    #526170

    alchemi design
    Expired Member
    Post count: 46

    In the GD Detail template, what shortcode do I add to the page?

    #526243

    Alex Rollin
    Moderator
    Post count: 27815

    The shortcode is on this page: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    
    
    
    [wpseo_breadcrumb]
    
    #526707

    alchemi design
    Expired Member
    Post count: 46

    I input that code on the Detail template page and nothing shows up. Is there some additional step that I’m missing?

    #526754

    Kor
    Moderator
    Post count: 16516

    Hi alchemi design,

    Thanks for your reply. Could you share WP admin access here in private reply so that we could check on it?

    #526758

    alchemi design
    Expired Member
    Post count: 46
    This reply has been marked as private.
    #526761

    Alex Rollin
    Moderator
    Post count: 27815

    To use the Yoast shortcode you will need to install Yoast SEO plugin and turn on the breadcrumbs feature as described here: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    #526762

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 22 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket