Opening Hours in expanded view on details page

This topic contains 6 replies, has 3 voices, and was last updated by  Tony Bellens 4 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #515005

    Tony Bellens
    Full Member
    Post count: 254

    Hi,

    I added the opening hours to the listings pages or archive page and to the details page. On the details page I would like to show them expanded (always open) as they are displayed in their own tab (see attached screenshot). On the listings (or archive) pages I would like to keep the dropdown as is.

    Thank you,
    Tony

    #515007

    Kor
    Moderator
    Post count: 16516

    Hi Tony,

    Thanks for your post. Kindly use the custom CSS code below to achieve what you needed there.

    .gd-bh-toggled .gd-bh-open-hours {
        display: block!important;
    }
    #515010

    Tony Bellens
    Full Member
    Post count: 254

    Hi Kor, that also changes the view on the archive pages. On those I would like to keep the dropdown.

    Thank you,
    Tony

    #515011

    Kor
    Moderator
    Post count: 16516

    Hi Tony,

    Thanks for your reply. Could you please share the URL of the page in question of where I can see the business hours in tabs?

    #515014

    Tony Bellens
    Full Member
    Post count: 254
    This reply has been marked as private.
    #515043

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Tony,

    the way to accomplish that is to use the extra class on the template where you are displaying the business hours expanded.

    gd-bh-expanded

    Add that as the extra class to the widget or shortcode to show it as expanded.

    https://wpgeodirectory.com/docs-v2/places/custom/#business-hours

    #515078

    Tony Bellens
    Full Member
    Post count: 254

    Thanks Alex, got it.

    Regards,
    Tony

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

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

Open Support Ticket