geertt
Forum Replies Created
-
AuthorPosts
-
Hi Guust,
The reason I wanted to do this is because a user has the issue displayed in the attached picture.
I know the regions are created automatically when a complete address is filled in, and the “set address on map” button is clicked.
However, this user does not have a complete address for his listing yet, only the filled in data is known at this time.
The problem is there that no region can be selected by this user.
I have even added the region manually in “multilocations” and it still doesn’t show up.Is there something else I can do?
Thanks!
Geert
Hi Stiofan,
Thank you for you answer.
I have disabled the responsive menu for now.
So I will wait for your tutorial, please place a comment here when you have finished it.Thanks,
Geert
This reply has been marked as private.Hi Paolo,
Sorry, I missed your reply in the other topic.
It seemed logical to me that you can move the event date to the content section like any other custom field.
And it also seems like something more people want as not everyone is using sidebar listing? Or is another way to get it in the content section maybe?
From your answer I understand there are no plans to implement this feature?
Thanks,
Geert
Hi Simone,
It seems I still can’t get the date in the detail page :-S
Could you have another look please?Thanks,
Geert
Maybe an idea for a future relaese 🙂
Anyway, you have been a great help.
Thanks again!
Geert
Hi Simone,
That has indeed done the trick, thank you for the code!
However I keep finding it strange that I cannot seem to manipulate the event dates trough a custom field.
There’s just no option to do that it seems?The “Time” custom field is not linked to the event date.
It’s just the same “Time” field as in any other (non-event) post type.Thanks.
Geert
Idd Simone, but can I remove it from the sidebar?
Thanks.
This reply has been marked as private.Thank you Guust for the quick and good solution! 🙂
Hi Simone,
Thanks for your answer.
On my website, the custom field “time” on the event post type seems to be the same field as on the “places” or other posts types.
Namely: a field where you can insert your business hours (like 10.00 am to 6 pm every day).I can move this info from the sidebar to the listing area, but as you know this is not what I want to do.
I want to move the event date and timing like you did on your screenshot.I have attached some new screenshots to show you what I mean, I hope you understand.
Thanks,
Geert
Hi Guust,
Thanks for the quick reply 🙂
In custom_fields_functions.php I changed the following:
– To customize the information displayed in the INFO tab in detail view:
`if($post->post_address){ $html .= ‘<span itemprop=”streetAddress”>’.$post->post_address.'</span>,<br>’;}
if($post->post_zip){ $html .= ‘<span itemprop=”postalCode”>’.$post->post_zip.'</span> ‘;}
if($post->post_city){ $html .= ‘<span itemprop=”addressLocality”>’.$post->post_city.'</span>,<br>’;}
if($post->post_region){ $html .= ‘<span itemprop=”addressRegion”>’.$post->post_region.'</span>,<br>’;}
if($post->post_country){ $html .= ‘<span itemprop=”addressCountry”>’.__( $post->post_country, GEODIRECTORY_TEXTDOMAIN ).'</span><br>’;}
$html .= ‘</div>’;
}`– Added a <BR> to this line:
$html .= (trim($type['site_title'])) ? __($type['site_title'],GEODIRECTORY_TEXTDOMAIN).': <br>' : '';
In post_functions.php I changed:
– Address layout on homepage map preview:
$address = str_replace($srcharr,$replarr,htmlentities(geodir_get_post_meta($ID,'post_address',true), ENT_COMPAT, 'UTF-8')) . ', <br>' . str_replace($srcharr,$replarr,htmlentities(geodir_get_post_meta($ID,'post_zip',true), ENT_COMPAT, 'UTF-8')). ' ' . str_replace($srcharr,$replarr,htmlentities(geodir_get_post_meta($ID,'post_city',true), ENT_COMPAT, 'UTF-8')) . ', <br>' . str_replace($srcharr,$replarr,htmlentities(geodir_get_post_meta($ID,'post_region',true), ENT_COMPAT, 'UTF-8')) . ', <br>' . str_replace($srcharr,$replarr,htmlentities(geodir_get_post_meta($ID,'post_country',true), ENT_COMPAT, 'UTF-8'));
– Changed code to display website instead of phone number on the homepage map preview:
if (geodir_get_post_meta($ID,'geodir_website',true)) { $contact = '<a href="' . geodir_get_post_meta($ID,'geodir_website',true) . '" target="_blank">' . str_replace($srcharr,$replarr,htmlentities(geodir_get_post_meta($ID,'geodir_website',true), ENT_COMPAT, 'UTF-8')) . '</a>';
– Changed the Font-Awesome icons that are used:
<div class="geodir-bubble-meta-side"> <span class="geodir_address"><i class="fa fa-map-marker"></i> <?php echo $address;?></span> <?php if($contact){?><span class="geodir_contact"><i class="fa fa-link"></i> <?php echo $contact;?></span><?php }?> <?php if($timing){?><span class="geodir_timing"><i class="fa fa-clock-o"></i> <?php echo $timing;?></span><?php }?> </div>
I don’t think I can do these changes elsewhere / in another way?
And how should I do it, putting the functions.php in the child theme?Thanks!
Geert
Thank you very much for your help Guust!
A good and clear explanation 🙂
Geert
Hi,
I disabled the theme compatibility.
It seems that after that I still had to disable and re-enable the theme itself.
Now everything works fine.Thanks a lot for your help!
Geert
Hello Guust,
Thanks for your answer.
I have deleted the compatibility pack for Enfold, and the explanation in the post you referred to made it clear why it wasn’t activating.
The autocomplete function (automatic search in Google Maps for the address you are entering) when entering a new location, still doesn’t work properly however.
Can I do anything about that myself or is it a bug?Thanks,
Geert
-
AuthorPosts