How to add html to the top of the add listing and add events pages

This topic contains 11 replies, has 2 voices, and was last updated by  Guust 7 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #421036

    Liliana Miranda
    Expired Member
    Post count: 7

    I want to add some text above the add listing form. What is the best way to do this?

    I also want to add some different text to the add event form. How can I do this?

    #421042

    Guust
    Moderator
    Post count: 29970
    #421043

    Liliana Miranda
    Expired Member
    Post count: 7

    Thank you Guust. Is there a similar way to do this for the sign up form? I want to add some text above the registration form.

    #421044

    Guust
    Moderator
    Post count: 29970

    If you are using the default GD register page [so not using UsersWP for example] then just add text in the WP page.

    Thanks

    #421045

    Liliana Miranda
    Expired Member
    Post count: 7
    This reply has been marked as private.
    #421047

    Guust
    Moderator
    Post count: 29970

    It is your Login page: YOURSITE/gd-login/

    Make sure to follow the instructions correctly at https://wpgeodirectory.com/docs/core-shortcodes/#add-listing

    If we need to have a closer look, post your WP admin details in a private reply so we can check your settings.

    Thanks

    #421048

    Guust
    Moderator
    Post count: 29970

    Sorry, but I think I may have been giving the wrong information, this would work better to add different info on different CPT Add Listing pages.
    Just use the built-in Add Listing page, get the Code Snippets plugin and add code like this:

    
    
    add_action('geodir_before_detail_fields' , '_my_geodir_build_payment_list', 1);
    function _my_geodir_build_payment_list(){
        $pt = isset($_REQUEST['listing_type']) ? esc_attr($_REQUEST['listing_type']) : '';
    
        if($pt =="gd_place"){
            echo "my HTML places: ".$pt;
    
        }elseif($pt =="gd_event"){
            echo "my HTML for events: ".$pt;
        }
    }

    Thanks

    #421269

    Liliana Miranda
    Expired Member
    Post count: 7
    This reply has been marked as private.
    #421273

    Liliana Miranda
    Expired Member
    Post count: 7
    This reply has been marked as private.
    #421308

    Guust
    Moderator
    Post count: 29970

    Change the first line from

    add_action('geodir_before_detail_fields' , '_my_geodir_build_payment_list', 1);

    to

    add_action('geodir_before_detail_fields' , '_my_geodir_build_payment_list', -1);

    Thanks

    #421491

    Liliana Miranda
    Expired Member
    Post count: 7

    Thanks Guust! That fixed the add listing/ add event issues.

    I’m still unable to find the GD register page. Please let me know how to edit the text on the register page

    #421504

    Guust
    Moderator
    Post count: 29970

    It is your Login page: YOURSITE/gd-login/

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount