Move Manage Franchise section on Add Listing Page

This topic contains 11 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #440467

    Lydia Williams
    Expired Member
    Post count: 42

    Hello, I am writing on behalf of a client that has a membership. I would like to rearrange the Add Listing page so that the Manage Franchise section comes right before the Terms & Conditions section (i.e. after all of the fields have been filled in). I think it is a more logical place for it to go after the Listing Details. I looked at add listing page template but can’t figure out what controls the positioning of the Franchise language. Thanks!

    #440547

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    I don’t think that is possible without a big customization, but I will flag your question for the developers in case they know of another way to do that.

    #440566

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #444380

    Josh Sandoz
    Full Member
    Post count: 69
    This reply has been marked as private.
    #444501

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    here is an example of how to move the franchise info on the form:

    
    
    
    remove_action( 'geodir_before_detail_fields', 'geodir_franchise_add_listing_field');
    
    add_action('geodir_custom_field_input_checkbox_geodir_termsandconditions','geodir_franchise_before_fields_fn',10,2);
    
    function geodir_franchise_before_fields_fn($html,$cf){
    	geodir_franchise_add_listing_field();
    	?>
        <script type="text/javascript">
            jQuery( document ).ready(function($) {
                $('#gd_is_franchise_row').prev('h5').remove();
            });
        </script>
        <?php
    }
    

    You can add that to your active theme’s functions.php file or as a code snippet.

    Let us know how it goes

    #444703

    Josh Sandoz
    Full Member
    Post count: 69
    This reply has been marked as private.
    #444804

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #444875

    Lydia Williams
    Expired Member
    Post count: 42
    This reply has been marked as private.
    #445227

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #445305

    Josh Sandoz
    Full Member
    Post count: 69
    This reply has been marked as private.
    #445387

    Alex Rollin
    Moderator
    Post count: 27815

    Hello

    this has been fixed, please check and let us know

    thanks

    #445388

    Alex Rollin
    Moderator
    Post count: 27815

    New snippet:

    
    
    
    <?php
    
    remove_action( 'geodir_details_main_content','geodir_action_details_slider',30);
    
    add_action( 'geodir_details_main_content','my_geodir_action_details_slider',30);
    
    function my_geodir_action_details_slider() {
    
    	if ( has_post_thumbnail() ) { 
    
    	the_post_thumbnail('full');
    
    	add_filter("kriesi_backlink","new_nolink");
    	
    	function new_nolink(){
    		
    		$kriesi_at_backlink = " - <a href='http://soundviewcreative.com' target='_blank'>Soundview Creative</a>";
    		return $kriesi_at_backlink;
    	
    	}
    
    	function _gd_custom_text_on_signin_signup_page() {
    		echo __( "If you already have an account, please Sign In. If you would like to become a member and add a listing, you must first register using Sign Up Now.", "your-text-domain&" );
    	}
    
    	add_action( "geodir_signup_forms", "_gd_custom_text_on_signin_signup_page", 9 );
    
    	}
    }
    
    remove_action( 'geodir_before_detail_fields', 'geodir_franchise_add_listing_field');
    
    add_action('geodir_custom_field_input_checkbox_geodir_termsandconditions','geodir_franchise_before_fields_fn',10,2);
    
    function geodir_franchise_before_fields_fn($html,$cf){
    	geodir_franchise_add_listing_field();
    	?>
        <script type="text/javascript">
            jQuery( document ).ready(function($) {
                $('#gd_is_franchise_row').prev('h5').remove();
            });
        </script>
        <?php
    }
    
Viewing 12 posts - 1 through 12 (of 12 total)

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

Open Support Ticket