Date and time détails
This topic contains 22 replies, has 3 voices, and was last updated by Giri 9 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 29, 2016 at 1:49 pm #255378
Hi everyone,
I want to know if it is possible to replace date and time from the right side of the page to the more informations tab?
Thank you.
André MercierAugust 29, 2016 at 5:10 pm #255604Hi,
I asked to the developers if it is possible and in case how to do it.
They’ll let us know asap.
Thanks
August 30, 2016 at 11:40 am #255966Place this code in your child theme functions.php file or using code snippets plugin.
add_filter( 'template_include', 'custom_geodir_event_template_loader',0); function custom_geodir_event_template_loader($template) { if(geodir_get_current_posttype() == 'gd_event'){ remove_filter('geodir_detail_page_sidebar_content', 'geodir_event_detail_page_sitebar_content', 2); add_action('geodir_before_show_post', 'geodir_event_show_shedule_date'); } }August 30, 2016 at 1:34 pm #256080Thank you for this answer.
August 30, 2016 at 1:37 pm #256081Is there a way to add widgets under the detail of the add (in the content section) not in the lower section?
Thanks
August 30, 2016 at 1:44 pm #256083I’m not sure what do you mean. Could you post your site link or screenshot. So i can understand?
August 30, 2016 at 1:56 pm #256088Here is a screenshot
August 30, 2016 at 1:59 pm #256090Try this code
add_filter( 'template_include', 'custom_geodir_event_template_loader',0); function custom_geodir_event_template_loader($template) { if(geodir_get_current_posttype() == 'gd_event'){ remove_filter('geodir_detail_page_sidebar_content', 'geodir_event_detail_page_sitebar_content', 2); add_action('geodir_after_main_content', 'geodir_event_show_shedule_date'); } }September 12, 2016 at 5:58 pm #264992Hi guys!
I’ve tried the code for replace date and time from the right side of the page to the more informations tab but it doesn’t work.
add_filter( ‘template_include’, ‘custom_geodir_event_template_loader’,0);
function custom_geodir_event_template_loader($template) {if(geodir_get_current_posttype() == ‘gd_event’){
remove_filter(‘geodir_detail_page_sidebar_content’, ‘geodir_event_detail_page_sitebar_content’, 2);
add_action(‘geodir_before_show_post’, ‘geodir_event_show_shedule_date’);
}
}Do you have a solution for me?
Thanks
André
September 12, 2016 at 9:26 pm #265107Hi,
make sure you are copying the code with correct single quotes (‘) and not curly quotes (’)
If that’s not the problem, please provide a link and admin credentials and we will apply the code for you.
Thanks
September 13, 2016 at 1:39 pm #265388Hi composito,
Please copy the code from this page.
https://gist.github.com/mistergiri/d07977b95da3d249148e5e428024b02c
If its not working, please post wp admin details.
Thanks
September 13, 2016 at 2:19 pm #265406Hi guys and thank you Giri, It works, but the date is not at the good place.
is it possible to do like the picture in attachment?
Thanks
September 13, 2016 at 2:45 pm #265417Please try the updated code.
https://gist.github.com/mistergiri/d07977b95da3d249148e5e428024b02c
September 13, 2016 at 3:08 pm #265431It works.
Thank you so much!
September 13, 2016 at 3:39 pm #265496You are welcome..
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket