Viewing 6 replies - 1 through 6 (of 6 total)
  • within the file parts/class-header-header_main.php

    1 inside the filter funct tc_social_in_header

    replace this line to allow more space for next link
    $class = ('resp' == $resp) ? '':'span5'
    to
    $class = ('resp' == $resp) ? '':'span3'

    2 create new filter funct tc_tagline_display_custom

    // my customization filter
           function tc_tagline_display_custom() {
    		tc__f('rec' , __FILE__ , __FUNCTION__, __CLASS__ );
    		ob_start();
    
    			 //class added if not resp
            $class 		=  ('resp' == $resp) ? '':'span2'
            ?>
            	<div style="float:left;margin:10px;" class=" <?php echo $class ?>">
    
    			        <ul style="list-style-type: none !important;">
    						<li>
    			        	 <?php tc__f( 'tip' , __FUNCTION__ , __CLASS__, __FILE__ ); ?>
    			        	 <?php echo "<a href='#' title='link'>Join us</a>" ?>
    						</li>
    			        </ul>
    			</div>    
    
    		<?php
    		$html = ob_get_contents();
            ob_end_clean();
            echo apply_filters( 'tc_tagline_display_custom', $html );
    	}

    3 inside funct __construct () at the end add this action

    // my customization
    add_action ( '__navbar' 				, array( $this , 'tc_tagline_display_custom' ) , 30, 1 );

    i hope this help you

    I’m not a php expert, but rather than hack the core code, couldn’t this be done in the Child Theme functions.php?

    Theme Author presscustomizr

    (@nikeo)

    Hi @greenfuelsbio, I recently wrote a snippet about how to add an extra social link in the header. This might help you : Adding a social link

    @fabioeliseo : your solution is fine but I tend to agree with @rdellconsulting, this is gonna be lost on theme update. It is always safer to work with a child theme.

    You could adapt your code with a function and a filter in the functions.php of a child theme :

    add_filter ( 'tc_tagline_display_custom' , 'my customization filter');

    Thanks for your contribution

    Thread Starter GreenFuelsBio

    (@greenfuelsbio)

    Perfect! I’ll try. For mobile version also works? greetings!

    Thread Starter GreenFuelsBio

    (@greenfuelsbio)

    Awesome, works perfect !
    I have putted the topic as resolved ??
    The last question about this, can i add a link or dropmenu below the logo ?
    Thanks.

    The instruction in the Adding a Social Link states to modify a .php file in the Theme directory

    “In your functions.php copy/paste the following code. It simply adds a filter to the existing Customizr function that renders the social icons in header.”

    Will doing this get lost in an update?

    Also, I am wanting to add the envelope Icon with a link to “contact us” How would I change the code provided in the above link to make this actually work?

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Create a link to the right of social icons’ is closed to new replies.