Different views for Widgets vs Archive page?

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 6 months, 1 week ago.

  • Author
    Posts
  • #523078

    anders
    Full Member
    Post count: 121

    Hi,

    For our gd_place -CPT we need different views for the archive page vs shortcode and widgets -listing view.

    Both views are very basic, the archive page should display/list title + a short content excerpt but the shortcode/widget views should only display/list the title.

    The archive page is using layout=”gridview_onehalf” but wherever we use a widget or shortcode to display a gd_place -list view we use the listview -layout.
    …so I was hoping I could use this “list_hide”:
    https://wpgeodirectory.com/docs-v2/templates/archive-item/hiding-archive-item-components/#list_hide
    …like:
    [gd_post_content key=”post_content” limit=”30″ read_more=” ” list_hide=”1″]
    (in our “GD Archive Item template”) but it does not seem to work?

    Thanks!

    #523113

    Alex Rollin
    Moderator
    Post count: 27815

    It will not simply hide everything, only secondary information.

    You will need custom CSS to hide items in certain views.

    For example, wrap your GD Listings widget in a custom class and hide the GD Post Images element only when it shows wrapped in your custom class.

    https://wpgeodirectory.com/docs/customizing-your-style/

    #523183

    anders
    Full Member
    Post count: 121

    Thank you Alex,

    But I was not referring to “list_hide_secondary” but to “list_hide” which is supposed to hide the specific field?

    …Yes, I know I can always hide things with css but it seems wrong simply hiding all these textblocks with css and I fear it will be bad for SEO.

    Thanks!

    #523212

    Alex Rollin
    Moderator
    Post count: 27815
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Different views for Widgets vs Archive page?’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.