Falk Meyer-Plate
Forum Replies Created
-
AuthorPosts
-
Hey,
i have now added my styles to the widget listing listview, but i then the widget is limited to the number of listing displayed. I would like to add a ajax call to pull more listings as i did in my listing listview template…we are now using the multilocation addon and when i navigate through the choose city option i get the widget listing listview template and have to press view all in an extra step to get all listing inside that area…i want to bypass that step…thats why i was asking for an option to just replace the whole template.
greets Falk
Hey,
thats working… i had to set the margin-right to about -50px but it works…although this work around seems a bit ugly to me 😀
Anyways thanks for that solution.
So what about my other issue…should i just try to copy the markup from liisting-listview to widget listing-listview? Or can i just use one of them? Most of the time the system is using listing listview but when i access the search page i get the template from widget listing listview. kind of anoying since thats the only page where i ran into this issue.
greets
FalkHey,
well yeah im using a custom icon for that.
Here is the related rendered code:
<div class="geodir_more_info adress-bg post_address" style="clear:both;" itemscope itemtype="http://schema.org/PostalAddress"> </span><span itemprop="streetAddress" class="adressfix">Berliner Str. 23</span><br><span itemprop="postalCode">53332 </span> <span itemprop="addressLocality">Bornheim</span> - <span itemprop="addressNeighbourhood">Roisdorf</span></div> <div class="geodir_more_info geodir_contact" style="clear:both;"><span class="geodir-i-contact" style=" background: url(http://wp.cityconcept-regional.de/wp-content/uploads/2017/04/tel_sign_white.png) no-repeat left center;background-size:18px 18px;padding-left: 21px;">Phone: </span><a href="tel:022223023">02222 - 30 23</a></div>
My Client doesnt want any third accessing the website right now and its secured by a login.
I hope you have a solution for this, aswell for my other question about the listing listview template.
Falk
Hey Stiofan,
I tried that in the first place but as I mentioned it will also remove my icon.
That’s why I’m asking to edit the function and it’s output.Greetings Falk
Hey Kor,
yes thats what im trying… css doesnt work because it will remove my icon aswell…already tried that.
I added a screenshot… left side is how it should look like ( just deleted the Phone live inside the DOM inspector ) and the right side how it actually look right now.
function geodir_cf_phone($html,$location,$cf,$p=''){ // check we have the post value if(is_int($p)){$post = geodir_get_post_info($p);} else{ global $post;} if(!is_array($cf) && $cf!=''){ $cf = geodir_get_field_infoby('htmlvar_name', $cf, $post->post_type); if(!$cf){return NULL;} } $html_var = $cf['htmlvar_name']; // Check if there is a location specific filter. if(has_filter("geodir_custom_field_output_phone_loc_{$location}")){ /** * Filter the phone html by location. * * @param string $html The html to filter. * @param array $cf The custom field array. * @since 1.6.6 */ $html = apply_filters("geodir_custom_field_output_phone_loc_{$location}",$html,$cf); } // Check if there is a custom field specific filter. if(has_filter("geodir_custom_field_output_phone_var_{$html_var}")){ /** * Filter the phone html by individual custom field. * * @param string $html The html to filter. * @param string $location The location to output the html. * @param array $cf The custom field array. * @since 1.6.6 */ $html = apply_filters("geodir_custom_field_output_phone_var_{$html_var}",$html,$location,$cf); } // Check if there is a custom field key specific filter. if(has_filter("geodir_custom_field_output_phone_key_{$cf['field_type_key']}")){ /** * Filter the phone html by field type key. * * @param string $html The html to filter. * @param string $location The location to output the html. * @param array $cf The custom field array. * @since 1.6.6 */ $html = apply_filters("geodir_custom_field_output_phone_key_{$cf['field_type_key']}",$html,$location,$cf); } // If not html then we run the standard output. if(empty($html)){ if ($post->{$cf['htmlvar_name']}): $field_icon = geodir_field_icon_proccess($cf); if (strpos($field_icon, 'http') !== false) { $field_icon_af = ''; } elseif ($field_icon == '') { $field_icon_af = '<i class="fa fa-phone"></i>'; } else { $field_icon_af = $field_icon; $field_icon = ''; } $html = '<div class="geodir_more_info ' . $cf['css_class'] . ' ' . $cf['htmlvar_name'] . '" style="clear:both;"><span class="geodir-i-contact" style="' . $field_icon . '">' . $field_icon_af . $html .= (trim($cf['site_title'])) ? __($cf['site_title'], 'geodirectory') . ': ' : ' '; $html .= '</span><a href="tel:' . preg_replace('/[^0-9+]/', '', $post->{$cf['htmlvar_name']}) . '">' . $post->{$cf['htmlvar_name']} . '</a></div>'; endif; } return $html; }
and i figuered out this line should be responsible for this changes
$html .= (trim($cf['site_title'])) ? __($cf['site_title'], 'geodirectory') . ': ' : ' ';
but when i try to edit it… as i said it just gives me back wierd results or even break the whole layout.
Thanks for your help.
Hi Giri,
basicly i just need an extra class of “form-control” added to the input field.
I kinda worked around my customizer issue by manually setting the display property from none to block.
Thanks
Hey hey,
this kinda worked for me, but can you guys hook me up how i can ether change or remove the “Place-Category:” before the actual category.
Greetings
FalkHey,
I tried various things, but still things don’t work out. In my code above is this one line where it says:
echo '<h3 style="padding:0px 15px 15px 15px;margin-top:-15px;">'.$customtitle.'<small> '.$taxonomies.'</small></h3>';
so now I need to know what do I have to put behind the $taxonomies to get my current category on the details page.
As you can see at the screenshot i am definitly talking about the details page and not the listings page ( /places/ ).
My snippet works fine so far except the fact I am not able to get my current category displayed.
Falk
Hey Giri,
I can give you this screenshot. Where it says gd_place_tags i want the category to be displayed. Basicly i just need the right variable to call the category of the listing.Hey,
images are now loading properly…i have added lazyload by myself and then it got stuck trying to do the same task twice.
I need to know where this beautiful thing is coded or how i can hook into the markup to add some minor changes to the markup. The grid function should work easily…basicly i am just using the masonry grid function inside isotope with the option to add a filter system in the later process 🙂
greetings
falkHello Stiofan,
I would like to add masonry to my grid-view. First because I want to change the gutter of the grid and second it will look way better on mobile devices. So where do I have to put the code from masonry to get them on each listing?
BTW I am still a little bit lost with all the hooks and names and what triggers what 🙂
best regards,
FalkHey,
thanks a lot i will study the post you linked there and let you know if i need some more help.
I guess we will have some more conversations over the next weeks 🙂Falk
Hello,
first of all thanks for the fast answer.
I want both to be gone the icon plus the “adress:”. Sure I can pick out the desired part and tell it to be hidden via css, but I was hoping I can change the whole markup and add some bootstrap classes and stuff…
I’ve added a image of how I want it to look like (look at TOTAL-Station)
I mean if I can see it on my page there must be some markup somewhere that tells it to behave like this 🙂
I haven’t worked that much with filters and hooks until now, but it seems like it’s a necessary step to master Geodirectory.
Do you have any good information about that topic besides wp-codex and your documentation?`
Best regards,
Falk -
AuthorPosts