Home Forums Basel support forum Content navigation right at the top (visibly/invisible)

Content navigation right at the top (visibly/invisible)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7436

    Fabian
    Participant

    Hello,
    I have inserted two fields in the upper right with this code in function.php

    function basel_header_block_search() {
    	$header_search = basel_get_opt( 'header_search' );
    	if( $header_search == 'disable' ) return;
    	?>
    	
    		<div class="mystuff">
    		<a href="/webadresse"><img class="alignright size-startslide wp-image-763" src="http://image.png" alt="" width="20" height="20" /></a>	
    		
    		
    		<?php do_action('wpml_add_language_selector'); ?>
    		
    			
    		</div>
    
    	<?php
    

    1: I want the image disappears when scrolling down
    2: Mobile version: should both contents disappear

    can you help here?

    #7448

    Artem Temos
    Keymaster

    Hello,

    You can hide the image with this code snippet. Add it to the Custom CSS

    .sticky-header .mystuff > a {
    	display:none;
    }

    And this one only for mobile devices

    .mystuff {
    	display:none;
    }

    Regards

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