jjerro on "Remove image header and scroll from Twenty Fourteen"

ساخت وبلاگ

hi RickAero, sorry for late reply, i was wondering how did you put your logo there, but i just realize u just crop your image and upload it as header image. so, open up header.php,
at the line 36 or so, you should see <div id="site-header">, below it, cut the code from opening a tag to the closing:

<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> </a>

and put it under:

<header id="masthead" class="site-header" role="banner"> <div class="header-main">

then delete the h1 tag;
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>

and, try to corp the image logo to 105 x 48 px if your first logo image didn't fit in.

remember: always back up your file before editing it and always use child theme to avoid upgrade issue.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 175 تاريخ : پنجشنبه 20 خرداد 1395 ساعت: 7:34