Add some text in the "More info" tab

This topic contains 7 replies, has 3 voices, and was last updated by  Stiofan O’Connor 10 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #28313

    a.deghiedy
    Expired Member
    Post count: 62

    Hi,

    Can i add some general text to the more info tab in details page above the info appearing like “Please use the below info to book your room”? and if it is possible how can i do that please.

    Thanks

    #28323

    Simone
    Expired Member
    Post count: 3515

    Hi, I know it isn’t a clean solution, but you could edit the custom_functions.php file in /geodirectory/geodirectory-functions,
    find where it says

    
    
    case 'post_info':
    echo $geodir_post_detail_fields;

    around row 996, and add this below

    echo "<br> Please use the below info to book your room";
    #28328

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Simone,

    Thanks for the solution – will that get changed back if any update happens to the plugin?

    Thanks

    #28330

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi, please add something like this to your child theme functions.php file

    
    
    add_action('geodir_before_tab_content','my_text_before_post_info' ,10,1 );
    
    function my_text_before_post_info($tab_index ){
    
    if($tab_index=='post_info'){
    echo "Please use the below info to book your room";
    }
    
    }

    Thanks,

    Stiofan

    #28334

    a.deghiedy
    Expired Member
    Post count: 62

    Thanks Stiofan

    I added that but i am afraid it is still not showing

    P.S – i have the tab label renamed to “Book a Room”

    Will that make any difference?

    Thanks

    #28335

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    oops i totally missed out the functions name try this (also fixed original)

    
    
    add_action('geodir_before_tab_content','my_text_before_post_info' ,10,1 );
    
    function my_text_before_post_info($tab_index ){
    
    if($tab_index=='post_info'){
    echo "Please use the below info to book your room";
    }
    
    }
    #28338

    a.deghiedy
    Expired Member
    Post count: 62

    It worked perfectly – Many thanks Stiofan , great support

    #28339

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Your welcome! 🙂

Viewing 8 posts - 1 through 8 (of 8 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