New Landing How can we help? Themeforest Theme Support Dante Modifying the right side of the Top Header

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #98455
    dgscreate
    Member
    Post count: 12

    I’d like to add a text link to the right side of the top header. Do I modify the /* TOP HEADER section of the file sf_header.php? I’m not sure which line in the code needs to be modified, I tried two different lines, but did not get the results I expected. Could someone point me in the right direction.
    thank you!

    #98490
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You will need to edit line 275 in sf-header.php:

    /* TOP HEADER
    	================================================== */ 
    	if (!function_exists('sf_top_header')) {
    		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-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');
    			$top_header_output .= '</div> <!-- CLOSE .tb-right -->'. "\n";
    			$top_header_output .= '</div> <!-- CLOSE .container -->'. "\n";
    			$top_header_output .= '</div>';
    		
    			return $top_header_output;
    		}
    	}

    And add it to your child theme’s functions.php file

    – Kyle

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