change landing page after editing listing

Discussion in 'GeoCraft WordPress Theme' started by zweitbuch, Apr 17, 2014.

  1. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    hey guys,

    my users have the following problem -> when they edit a listing and submit the edited version, they come back to the editing page, so they are not sure if they already submitted or not... how can i change that so that they are sent back to the dashboard site after the edited the listing?
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to library > controls > dashboard > dashboard_functions.php present in your theme directory ans add the code given below

    Code:
     wp_redirect(home_url("/?page_id=".get_option('geo_dashboard_page')));

    check image for reference

    2014-04-18_1239.png



    This will solve your issue.


    Thanks & Regards
    Gourav Shrivastava
     
  3. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    thank you, and is it also possible to let a pop up, pop up here before this code, so actually before redirection, just a small pop up saying like: "Thanks, your changes have been submitted..."
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207

    Hello,

    Unfortunately there isn't a way to do that with our theme unless you custom code something up. Sorry.


    Thanks & Regards
    Gourav Shrivastava
     
  5. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    hey gourav,

    okay i had a freelancer custom code me the following code up:
    Code:
    <script type="text/javascript">
                alert("Thanks, your changes are done");
            </script>
    could you just tell me where i have to put the code, so that it is executed after the "submission" button has been clicked :)?
     
  6. zweitbuch

    zweitbuch Member

    Joined:
    Mar 18, 2014
    Messages:
    172
    Likes Received:
    1
    could u help me plz
     

Share This Page