• Resolved ceokophael

    (@ceokophael)


    Hello,

    I’m currently using the sparkling theme, and I put a logo in the header but it’s also a button.
    How can I remove that function from the logo ?

    My site is still on localhost so I can’t link you to it right now.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Silkalns

    (@silkalns)

    Open header.php file and replace these lines of code;

    <div id="logo">
    	<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>"  height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>
    </div><!-- end of #logo -->

    With these lines that will get rid of URL for your logo:

    <div id="logo">
    	<img src="<?php header_image(); ?>"  height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php bloginfo( 'name' ); ?>"/>
    </div><!-- end of #logo -->

    Let me know if this is what you were looking for.

    Thread Starter ceokophael

    (@ceokophael)

    Thank you, I have a problem, There is no header php file, nor a default page. I’ve read something about get.php. Can you help me with that ? I’m sorry to bother.

    I went to wp-content/themes/sparkling-child/ and then I have

    functions.php
    rtl.css
    screenshop.png
    style.css

    Do I have to create a header.php ? If yes, what do I have to write in it ?(I’ve tried to create one just one, but it didn’t work)

    Thank you

    Thread Starter ceokophael

    (@ceokophael)

    I mean screenshot.png

    Theme Author Silkalns

    (@silkalns)

    As you are using Child Theme you need to copy header.php file from Parent Theme folder: wp-content/themes/sparkling/ and paste it in Child Theme folder and make those changes there.

    Let me know if this helps.

    Thread Starter ceokophael

    (@ceokophael)

    Nice!!! thank you !!! it works. The solution was pretty simple in fact, but I was trying to solve the mystery in the css, and would have never thought to look there.

    Again thank you a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘don't want logo to be a button’ is closed to new replies.