• Resolved kartus

    (@kartus)


    Hi all.
    This is my site .
    When it goes to mobile version, the logo goes below my navigation menu.
    Is it possible to swap their positions? I want the logo above the menu.
    Thank you in advance,
    best regards, Vlado!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,
    you can change it in header.php

    Thread Starter kartus

    (@kartus)

    Hi leleuf,
    first of all, thank you for your response.
    Second, can you please be more specific? My knowledge about web programing is pretty much non existing. I have no idea about the difference between the codes for a mobile version and those for normal version.
    Thanks in advance,
    Best regards, VLado!

    Hi,

    I’m not an expert. I would not say stupid things but I think this works
    :

    in header.php, cut :

    <?php if ( get_header_image() != '' ) : ?>
    
    			<div id="logo">
    				<a href="<?php echo home_url( '/' ); ?>"><img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>
    			</div><!-- end of #logo -->
    
    		<?php endif; // header image was removed ?>

    And paste after

    <?php responsive_header_top(); // before header content hook ?>

    Thread Starter kartus

    (@kartus)

    It didn’t work ??

    Are you sure ? I tested with a local installation and it works :
    Edit /wp-content/themes/responsive/header.php and refresh your page

    https://www.chtisite.net/divers/logo-responsive.jpg

    do you have a child theme?

    Thread Starter kartus

    (@kartus)

    Ohh, i cut the other ?php if get header image ??
    It really worked. Ty very much.
    1 final question. I just changed it in the main theme. In order to keep it this way even after theme update i must copy my header.php in the child theme folder right?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Swap logo and top menu on mobile’ is closed to new replies.