New Landing How can we help? Themeforest Theme Support Dante Change Header Login-Text's and add new

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Dante
  • #86271
    seanarcher
    Member
    Post count: 55

    Hi,

    i have the following problem: I want to change the Buttons “Log-In, “Checkout” in the Top right of the Dante theme. Also i’d like to add custom links to this place. Can you tell me the file of your theme in which this is generated? so i can add a copy to my child folder and make my changes to it?

    Thank you very much

    #86275
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You need to edit sf-header.php, go down to the AUX links section

    – Kyle

    #86290
    seanarcher
    Member
    Post count: 55

    Perfect, Thank you! Is it possible that this doesn’t work with a child-theme? When i copy the sf-header to my child-theme into an “include” folder it isn’t “noticed”. When i make my edits directly in the main-theme sf-header it works..

    another thing: when i somebody logs-In he’s automatically redirected to the “my-account” page. Is it possible to change that so he is redirected to the shop overview of all products?

    thanks!

    #86306
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    1) You need to copy the function into your functions.php file, not the whole file.

    2) This is controlled by WooCommerce not the theme, so unfortunately we can’t change it

    – Kyle

    #86310
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can do it through child theme. It is best way to do it.

    After login redirect, please put this code at functions.php

    add_filter('woocommerce_login_redirect', 'dante_login_redirect');
     
    function dante_login_redirect( $redirect_to ) {
         $redirect_to = 'http://mysite.com/shop';//please change url
         return $redirect_to;
    }

    Thanks

    #86578
    seanarcher
    Member
    Post count: 55

    thank you very much @kyle and @Mohammad ! Everything works fine!

    #86581
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great! No problem

    – Kyle

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register