How to change the archive default listing layout

This topic contains 4 replies, has 4 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #499800

    Wesley Lewis
    Free User
    Post count: 8

    I want the archive page to default layout to a grid layout of my choosing but can’t find that option anywhere. Done searches in the forum but still nothing. How do I change it to default to a grid and also keep people from being able to change the format?

    #499832

    Alex Rollin
    Moderator
    Post count: 27815

    To control the gd loop layout you can take several actions.

    First, you can set the value for the layout in the gd_loop shortcode on the archive template.

    
    
    
    [gd_loop layout="3"]
    

    You can then proceed to hide the view select field on the archive page with CSS:

    
    
    
    .geodir-list-view-select {
        display: none;
    }
    

    You can also remove some view choices from that select, as shown here:
    https://wpgeodirectory.com/support/topic/hide-grid-view-selections/#post-495070

    See also: https://wpgeodirectory.com/docs-v2/faq/customizing/

    #499891

    Wesley Lewis
    Full Member
    Post count: 38

    That worked. Thanks!

    #500172

    Aubrey Clark
    Expired Member
    Post count: 27

    Hi, I’m having a similar issue.

    I am trying to get a two column design on the listing page. I have tried changing theme templates, as well as adjusting the short-code
    [gd-loop layout=”2″] variable. However it always displays at full width with only a single column.

    Current Short-code output on GD Archive:

    [gd_notifications]
    [gd_category_description]
    [gd_search]
    [gd_loop_actions]
    [gd_loop layout=”2″]
    [gd_loop_paging]

    https://inellijay.com/things-to-do/hillcrest-orchards/

    Any ideas?

    #500271

    Alex Rollin
    Moderator
    Post count: 27815

    @wesleylewis great!

    @afreshup, Yes, please make a new topic and we can see about helping you with that.
    Always make your own topics.

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket