Customizing Text for Business Hours

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

  • Author
    Posts
  • #497118

    Megan Kempf
    Full Member
    Post count: 13

    I’m using the “Business Hours” field to actually represent our “service times” and all seems to be working, except I’d really like to change the wording of “Closed Now” and “Open Now”. Since we’re displaying service times, the businesses are technically open during other times, just not having service. I feel like “Closed Now” is a bit misleading since their office may technically be open. I’d like to replace “Closed Now” with “Service Times” and “Open Now” with “Service is Live”. Can I do this via CSS? Or will it need to be an html change?

    #497122

    Kor
    Moderator
    Post count: 13125

    Hi Megan Kempf,

    Thanks for your reply. You can use the “Translation” method here to change the texts https://wpgeodirectory.com/docs-v2/translation/overview/ . Could you give it a try?

    #497123

    Megan Kempf
    Full Member
    Post count: 13

    I’m sorry for probably sounding like an amateur (which I totally am), but is this really the easiest way to change two bits of text on my site?

    Honestly I’d even be okay if both phrases were simply replaced with “Service Times”. I understand that this would provide a fix, but I don’t need to change text for anything else on my site, so this seems like a bit of overkill.

    #497128

    Alex Rollin
    Moderator
    Post count: 18389

    Yes, and once you change one string you will probably find many more that will make your site really ‘speak’ to your niche.

    The actual process can be done from start to finish in a couple minutes once you have the tools handy.

    #497173

    Megan Kempf
    Full Member
    Post count: 13

    Okay sounds good. So, I have another question – I can start a new thread if necessary, but I have a feeling it may be this same solution.

    When I use address shortcode, the address displays like this:

    Address: Street Address
    City
    State
    Zip Code
    Country

    I’d like it to be more like this:

    Address:(break here)
    Street Address
    City, State (these on the same line)
    Zip Code
    Country

    Would this also be something I change with the translation method?

    #497197

    Alex Rollin
    Moderator
    Post count: 18389

    Not sure how you are adding it but try GD Post Address and adjust the template to meet your needs:
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_address

    #497275

    Megan Kempf
    Full Member
    Post count: 13

    This is what I’m wanting, except I’d like it to apply site-wide. I’m actually not using widgets anywhere, just shortcode. So on my archive and listing pages, the address displays as above. Is there any way to customize the layout of address tags for the entire site? Every place the GD Post Address shortcode is used?

    #497327

    Alex Rollin
    Moderator
    Post count: 18389

    Yes, every instance of the GD Post Address Element.

    #497361

    Megan Kempf
    Full Member
    Post count: 13

    I’m sorry for the confusion, but I’m unable to get it to work.

    I’ve followed the directions here: https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_address but nothing has changed. I’m not using a sidebar or anything to display my address, I’m just using the shortcode. I’m not sure if that’s the problem or not, but I’ve tried the method above to no avail. Am I missing something?

    #497379

    Alex Rollin
    Moderator
    Post count: 18389

    Please send a link to the page where you want to show the address along with WP Admin credentials in a private reply and we will take a look.

    “WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:”

    #497382

    Megan Kempf
    Full Member
    Post count: 13
    This reply has been marked as private.
    #497398

    Alex Rollin
    Moderator
    Post count: 18389

    With V2 you can edit the templates for each display of the listing.

    The first link is an archive page, and the archive item template is what determines what is shown.

    To adjust the address with GD Post Address you will need to edit the archive item template and add GD Post Address as a shortcode.

    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    For the details page, it is not possible to change the header area without a customization.

    Instead, you can easily add a shortcode for GD Post Address to the tabs UI.

    https://wpgeodirectory.com/docs-v2/places/tabs/

    Find the tabs UI for your CPT, click the Tabs (tab) and then find ‘shortcode’ on the left. Click it to add one on the right. Then use the shortcode builder there to add a GD Post Address shortcode with your preferred template.

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

You must be logged in to reply to this topic.