Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Dante
  • #164121
    mikelynch
    Member
    Post count: 93

    Hi

    I have tried everything to switch off the search tool in the site header but no matter what I try, it does not go away!

    I have attached a screen shot for you just to clarify.

    I’m pretty sure all the correct options are in place for it not to show.

    Thanks
    Mike

    Attachments:
    You must be logged in to view attached files.
    #164179
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    nav.search-nav{
    display:none !important;
    }

    Thanks
    Mohammad

    #164239
    mikelynch
    Member
    Post count: 93

    Thanks for that, it worked perfectly. Can I raise another small point here or do I need to start another topic?

    If you see the attached screen shot, The top bar navigation links spread over 2 lines, is there any way I could have them go all the way across the top so they are all on one line?

    Thanks
    Mike

    Attachments:
    You must be logged in to view attached files.
    #164245
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_top_header() {
    
    			$options = get_option('sf_dante_options');
    			$header_left_text = __($options['header_left_text'], 'swiftframework');
    			$top_header_output = '';
    
    			$top_header_output .= '<div id="top-header">';
    			$top_header_output .= '<div class="container">'. "\n";
    			$top_header_output .= '<div class="th-left col-sm-3 clearfix">'. "\n";
    			$top_header_output .= do_shortcode($header_left_text);
    			$top_header_output .= '</div> <!-- CLOSE .tb-left -->'. "\n";
    			$top_header_output .= '<div class="th-right col-sm-9 clearfix">'. "\n";
    			$top_header_output .= sf_aux_links('top-header-menu');
    			$top_header_output .= '</div> <!-- CLOSE .tb-right -->'. "\n";
    			$top_header_output .= '</div> <!-- CLOSE .container -->'. "\n";
    			$top_header_output .= '</div>';
    
    			return $top_header_output;
    		}
    

    Thanks
    Mohammad

    #164249
    mikelynch
    Member
    Post count: 93

    Ah right – I don’t have the child them installed, I always just install the main them. Is this bad practice? Is there another way around it or can I install the child theme at this stage without affecting the site I am working on?

    Thanks
    Mike

    #164251
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can install child theme in this stage without affecting anything .
    Thanks
    Mohammad

    #164252
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can install child theme in this stage without affecting anything .
    Thanks
    Mohammad

    #164253
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can install child theme in this stage without affecting anything .
    Thanks
    Mohammad

    #164255
    mikelynch
    Member
    Post count: 93

    Sorry to be a pain, but do I just install the child theme but not activate it – if I make it active won’t it just override what I already have in place?

    Thanks
    Mike

    #164259
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Only theme options settings will be restore to default.
    Thanks
    Mohammad

    #164264
    mikelynch
    Member
    Post count: 93

    So, just to clarify, do I install the child theme and then activate it and all the design elements I have created will still be in place?

    I have done quite a bit of work on this and would hate to lose it and have to do it all again.

    Is there no way of making the top bar links fit all across the top without installing the child them?

    Mike

    #164267
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit sf-header.php file at /dante/includes/

    Find this code:-
    $top_header_output .= '<div class="th-left col-sm-3 clearfix">'. "\n";
                $top_header_output .= do_shortcode($header_left_text);
                $top_header_output .= '</div> <!-- CLOSE .tb-left -->'. "\n";
                $top_header_output .= '<div class="th-right col-sm-9 clearfix">'. "\n";
                $top_header_output .= sf_aux_links('top-header-menu');
    
    Replace with:-
    $top_header_output .= '<div class="th-left col-sm-6 clearfix">'. "\n";
                $top_header_output .= do_shortcode($header_left_text);
                $top_header_output .= '</div> <!-- CLOSE .tb-left -->'. "\n";
                $top_header_output .= '<div class="th-right col-sm-6 clearfix">'. "\n";
                $top_header_output .= sf_aux_links('top-header-menu');

    Thanks
    Mohammad

    #164867
    mikelynch
    Member
    Post count: 93

    Hi

    as per the above at the start of the topic, you gave me some code to stop the search magnifier showing but it has now come back again somehow.

    Can you help me with this please.

    Thanks
    Mike

    #164883
    mikelynch
    Member
    Post count: 93

    I have now resolved this issue so there is no need to reply.

    Thanks
    Mike

    #164910
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

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