Hi,
there is no need to edit files. Everything can be done via your theme functions.php file.
Each action calls a function.
What you need to do is to remove the action, calling the function that you want to modify and create a new one, modified as needed.
Example: Modify in Home page the opening html tags to the primary div.
The action in geodir-home.php is:
do_action( 'geodir_wrapper_open', 'home-page', 'geodir-wrapper','');
The action name is geodir_wrapper_open
and it can be found in geodirectory_template_actions.php right at the top.
add_action( 'geodir_wrapper_open', 'geodir_action_wrapper_open', 10, 3 );
function geodir_action_wrapper_open($type='',$id='',$class=''){
echo '<div id="'.$id.'" class="'.$class.'">';
}
All you need to do is
1) remove the add_action:
remove_action( 'geodir_wrapper_open', 'geodir_action_wrapper_open', 10);
2) copy the function in your theme’s functions.php, rename it and edit following your needs :
function my_geodir_action_wrapper_open($type='',$id='',$class=''){
echo '<div class="my_extra_div"><div id="'.$id.'" class="'.$class.'">';
}
3) add a new action with your new functions name replacing the one you removed.
add_action( 'geodir_wrapper_open', 'my_geodir_action_wrapper_open', 10, 3 );
Now you will need to edit the action that adds the wrapperdiv closing tag to add the extra closing div, following the example above.
Hope this is enough to get you started.
let us know,
Thx