New Landing How can we help? Themeforest Theme Support Dante deactivating subscribe dropdown

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #71196
    nathanscamera
    Member
    Post count: 130

    How would make the subscribe dropdown menu in header menu that works with mailchimp, just a link. So instead of the dropdown, it would just link to a page on click. Thank you for your time.

    #71431
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Open up sf-header.php and find line 554:

    $aux_links_output .= '<li class="parent"><a href="#">'. __("Subscribe", "swiftframework") .'</a>'. "\n";

    And replace with:

    $aux_links_output .= '<li class="parent"><a href="#">Subscribe</a>'. "\n";

    If you need to remove the arrow please provide me with your link and I will provide you with some custom css

    – Kyle

    #74636
    nathanscamera
    Member
    Post count: 130

    Thanks you!

    #74642
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

    #279041
    Matthias
    Member
    Post count: 49

    Hi Kyle, where do I change exactly the same thing now since the last update?

    Thanks

    #279045
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    There is a new filter that can be used without changing the theme files.

    Add the code below to your functions.php of the child theme.

    function sf_custom_subscribe_text(){
       return __("My custom Subscribe text", "swiftframework");
    }
    add_filter('sf_subscribe_text', 'sf_custom_subscribe_text');

    Let me know if it worked.

    -Rui

    #279048
    Matthias
    Member
    Post count: 49

    ok that will change the text, but what about the link to a custom URL? and how can I remove the little arrow next to the link on the right as well?

    #279059
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    For that it will be necessary to replace line 616 in the sf-header.php
    $aux_links_output .= '<li class="parent"><a href="#">'. $sub_text .'</a>'. "\n";

    -Rui

    #279068
    Matthias
    Member
    Post count: 49

    Thanks Rui, I thought so but that is not working for me, I changed the # to /subscribe/, but it won’t change on the front end – any ideas?

    #279071
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Just to confirm. Are you using the latest version of Dante that was launched yesterday?
    Did you made the modifications in the theme file or in the child theme?

    If you had a previous modified file in the child theme, you will need to copy changes across.

    -Rui

    #279075
    Matthias
    Member
    Post count: 49

    yes confirmed. latest version and child theme and I copied changes across. I just need the subscription link to point to a url. everything else works just fine

    #279080
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    so you can see the change you made in the subscription text but not the link? strange.
    Just realised that you should just copy the modified function to the functions.php of the child theme.

    In this case copy the entire function till the end.

        if ( ! function_exists( 'sf_aux_links' ) ) {
            function sf_aux_links( $position, $alt_version = false, $header_version = "" ) {
    

    -Rui

Viewing 12 posts - 1 through 12 (of 12 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