Home Forums Basel support forum Header – Add text to right column

Header – Add text to right column

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5877

    jeffuk
    Participant

    Hi guys,

    thank you for the template it is nice and easy to work with, although I have surfed the forum and could not find a proper answer to my question.

    What I want to achieve: In the header I want to add a phone number and an email underneath it, both to go into the righ-column before the search.

    Something like this:

    <div class="right-column">
    <div class="myStuff">
    <a href="tel:xxx"> xx</a>
    <a href="mailto:xxx"> xx</a>
    </div>
    
    			<div class="search-button basel-search-full-screen">

    I am using simple header, and a sticky header as well. I understand that JS has to be changed as well, as that it how the sticky header is generated.

    So once again, how do I add a block/text to the right-column and what JS should I upload and where.

    Best,

    #5879

    jeffuk
    Participant

    And I would also like to have the same (as homepage) header style & layout for all pages, i.e. shop, product etc

    #5883

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for using our theme.

    The easiest way we can suggest you is to override “Search widget” function in your child theme functions.php file and place your phones there

    function basel_header_block_search() {
    	$header_search = basel_get_opt( 'header_search' );
    	if( $header_search == 'disable' ) return;
    	?>
    	
    		<div class="myStuff">
    			<a href="tel:xxx"> xx</a>
    			<a href="mailto:xxx"> xx</a>
    		</div>
    
    		<div class="search-button basel-search-<?php echo esc_attr( $header_search ); ?>">
    			<a href="#">
    				<i class="fa fa-search"></i>
    			</a>
    			<div class="basel-search-wrapper">
    				<div class="basel-search-inner">
    					<span class="basel-close-search"><?php esc_html_e('close', 'basel'); ?></span>
    					<?php basel_header_block_search_extended( false, true, array('thumbnail' => 1, 'price' => 1, 'count' => 4), false ); ?>
    				</div>
    			</div>
    		</div>
    	<?php
    }

    Write us it doesn’t help you.

    Regards

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)