New Landing How can we help? Themeforest Theme Support Dante How can I add text in the right top bar section?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #210435
    RHR
    Member
    Post count: 42

    Hi
    How can I add text to show up in the right hand side of the top bar? I don’t know what format to write in the Top Bar right text config box.
    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #210457
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    What text do you want to add? You can just add it to the option “Top Bar right text config”.

    Thanks,
    David.

    #210480
    RHR
    Member
    Post count: 42

    Thank you, but I tried that and it didn’t work. Does it need any additional code?

    Attachments:
    You must be logged in to view attached files.
    #210482
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Is the theme running the latest version?

    Can I have a WP login to take a closer look?

    – David.

    #210483
    RHR
    Member
    Post count: 42
    This reply has been marked as private.
    #210491
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I just enabled Top Bar at Admin -> Theme Options -> Header Options. That resolved the issue.
    Thanks
    Mohammad

    #210493
    RHR
    Member
    Post count: 42

    Hi, thanks for that. I didn’t realise that the top bar was above the two top bars I have already.

    I was trying to put text to the right of the grey bar. Is that possible?

    Thank you.

    #210811
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Not by default that would not be possible.

    You would need to activate your child theme, inside the functions.php file you would need to copy and paste this:

    You would need to replace this RIGHT SIDE TEXT with your desired text and then align it to right using CSS.

    
    	/* 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 .= 'RIGHT SIDE TEXT';
    			$top_header_output .= '</div> <!-- CLOSE .tb-right -->'. "\n";
    			$top_header_output .= '</div> <!-- CLOSE .container -->'. "\n";
    			$top_header_output .= '</div>';
    
    			return $top_header_output;
    		}
    	}

    Thanks.

    #210836
    RHR
    Member
    Post count: 42

    Thank you. I’ve activated the Child Theme and added this to the functions.php file but it gives me a parse error so I’ve removed it. Would you be able to add it in for me or tell me exactly where to add it to the file to allow it to work, please.

    #210838
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    What was the error message? You will need to insert before the closing the PHP tags which look like ?>

    Thanks.

    #210926
    RHR
    Member
    Post count: 42

    Brilliant, thank you.

    #210954
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. Great thank to David.
    Mohammad

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