Date and time détails

This topic contains 22 replies, has 3 voices, and was last updated by  Giri 8 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #255378

    composito
    Expired Member
    Post count: 50

    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é Mercier

    #255604

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I asked to the developers if it is possible and in case how to do it.

    They’ll let us know asap.

    Thanks

    #255966

    Giri
    Expired Member
    Post count: 3155

    Place 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');
        }
    }
    
    #256080

    composito
    Expired Member
    Post count: 50

    Thank you for this answer.

    #256081

    composito
    Expired Member
    Post count: 50

    Is there a way to add widgets under the detail of the add (in the content section) not in the lower section?

    Thanks

    #256083

    Giri
    Expired Member
    Post count: 3155

    I’m not sure what do you mean. Could you post your site link or screenshot. So i can understand?

    #256088

    composito
    Expired Member
    Post count: 50

    Here is a screenshot

    #256090

    Giri
    Expired Member
    Post count: 3155

    Try 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');
        }
    }
    #264992

    composito
    Expired Member
    Post count: 50

    Hi 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é

    #265107

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    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

    #265388

    Giri
    Expired Member
    Post count: 3155

    Hi composito,

    Please copy the code from this page.

    https://gist.github.com/mistergiri/d07977b95da3d249148e5e428024b02c

    If its not working, please post wp admin details.

    Thanks

    #265406

    composito
    Expired Member
    Post count: 50

    Hi 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

    #265417

    Giri
    Expired Member
    Post count: 3155
    #265431

    composito
    Expired Member
    Post count: 50

    It works.

    Thank you so much!

    #265496

    Giri
    Expired Member
    Post count: 3155

    You are welcome..

Viewing 15 posts - 1 through 15 (of 23 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount