EH
Forum Replies Created
-
AuthorPosts
-
That worked. Thank you so much!
I would like to tell how many times someone clicks on the website link in a given profile. Does that make sense?
I actually ending up doing this the jQuery route which worked out better because I only wanted this to happen on the listing page slider and not on the feature listing widget slider. However just for further reference I’m curious if I have access to the slider markup.
Sorry I have one more question. Before I go down the rabbit hole of moving divs around with jQuery I figure I would ask, is there someplace I can edit the flex html? I want to move <ul class=”geodir-direction-nav”> out of the geodir_flex-container and put it after the geodir_carousel.
Actually nevermind if I put my query string first and the redirect on the end of it then it works.
Is there a filter to remove that redirect from signup_function.php?
This didn’t exactly work but I think I know why. I need to edit this line of code:
if (isset($_REQUEST['redirect_add_listing']) && $_REQUEST['redirect_add_listing'] != '') { $redirect_to = $_REQUEST['redirect_add_listing']; }
in geodirectorygeodirectory-functionssignup_function.php
I’m assuming I can’t just copy this into my child theme and make modifications right?
This reply has been marked as private.I had to change it up slightly but this worked for me.
<script> jQuery(function($) { $(document).ready(function($) { if ($('#geodir_carousel').length == 0) { $('.geodir-direction-nav').hide(); } }); }); </script>
Thanks for pointing me in the right direction!
AHH of course! That worked. Thanks again for the help.
Yes, it is. However NO tabs are showing now if there isn’t content for testimonials. I was looking for a filter to remove just that tab if there was no content, not all of them.
Well, suppressing the warnings gets rid of the warning but now no tabs appear on a profile that doesn’t have a testimonial.
This is a “nice to have feature” so for now I’m just going to add testimonials to the main tab since I can do that pretty easily.
I didn’t think to try that. I’ll try it out and let you know. Thank you!
Hi Stiofan,
I have actually already tried that, but it doesn’t seem to be working. I don’t want to get rid of the direction nav completely, just when there is only one slide.
Hi Paolo,
I tried this, it seems to work when there is something in that field but when there is not I get the errors listed below.
//Add New tab to GeoDirectory Listing page add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend'); function geodir_detail_page_tab_list_extend($tab_array) { global $wpdb; $id = get_the_ID(); $CustomerTestimonials = $wpdb->get_var("SELECT geodir_testimonials FROM wp_geodir_gd_place_detail WHERE post_id = $id "); if ($CustomerTestimonials !=''){ $tab_array['testimonials_tab'] = array( 'heading_text' => __('Testimonials',GEODIRECTORY_TEXTDOMAIN), 'is_active_tab' => false, 'is_display' => apply_filters('geodir_detail_page_tab_is_display', true,'testimonials_tab'), 'tab_content' => ''); return $tab_array; } } add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content'); function geodir_my_new_tab_content($tab_index) { if($tab_index =='testimonials_tab'){ global $wpdb; $id = get_the_ID(); $CustomerTestimonials = $wpdb->get_var("SELECT geodir_testimonials FROM wp_geodir_gd_place_detail WHERE post_id = $id "); echo $CustomerTestimonials; } }
Warning: array_key_exists() expects parameter 2 to be array, null given in C:WampDeveloperWebsiteslocalhostwebrootehpublic_htmlwp-contentpluginsgeodirectorygeodirectory-functionscustom_functions.php on line 1334
Warning: Invalid argument supplied for foreach() in C:WampDeveloperWebsiteslocalhostwebrootehpublic_htmlwp-contentpluginsgeodirectorygeodirectory-functionscustom_functions.php on line 1473
Warning: Invalid argument supplied for foreach() in C:WampDeveloperWebsiteslocalhostwebrootehpublic_htmlwp-contentpluginsgeodirectorygeodirectory-functionscustom_functions.php on line 1511
Warning: Invalid argument supplied for foreach() in C:WampDeveloperWebsiteslocalhostwebrootehpublic_htmlwp-contentpluginsgeodirectorygeodirectory-functionscustom_functions.php on line 1632
– See more at: http://localhost/eh/public_html/places/united-states/massachusetts/boston/audio-1/testing/#sthash.V1wRXY6y.dpuf -
AuthorPosts