Viewing 6 replies - 1 through 6 (of 6 total)
  • Replace this code

    <div id="logo">
    <a href="<?php echo home_url(); ?>"><img src="<?php if (onepage_get_option('onepage_logo') != '') { ?><?php echo onepage_get_option('onepage_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
    </div>

    with this one in front-page.php and header.php

    <div id="logo">
    <?php if (onepage_get_option('onepage_logo') != '') { ?>
    <a href="<?php echo home_url(); ?>">
    <img src="<?php echo onepage_get_option('onepage_logo'); ?>" alt="<?php bloginfo('name'); ?>" /></a><?php } else { ?>
    <h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
    <p><?php bloginfo('description'); ?></p>
    <?php } ?>
    </div>

    Now you need to style the h1 tag. Go to Appearance > Editor > style.css and add these lines

    #logo h1 {
    margin: 0;
    }
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    pankaj064? You really need to prefix that with “In your child theme directory one-page-child make copies of the parent theme’s files (as above) and modify those copies.”

    http://codex.ww.wp.xz.cn/Child_Themes

    Do not recommend that people modify files like that without the child theme warning. They’ll lose their work when the original theme updates.

    Thread Starter marcusasiabc

    (@marcusasiabc)

    Thanks pankaj064 & Jan Dembowski for your help.

    I think I am not specific in my initial post.

    The problem:
    Input in Appearance > Theme > Customerize > Site Title and Tagline cannot be shown in the page (Proof: when viewing the source code of my site, you will find nothing is seen within <title></title>.

    My wibsite: http://www.hongkong-bank-account.com

    Did anyone have the same situation using this theme?

    Thanks again for everyone effort.

    Now I understand your problem. There is a tag
    <html <?php language_attributes(); ?>
    in line no 2 of front-page.php and header.php in which the author missed closing tag “>”
    You can do it mannually in you child theme header.php and front-page.php by replacing with this code
    <html <?php language_attributes(); ?>>
    You will get the site title shown in your browser’s windows.
    To learn how to create a child theme visit this link.

    Thread Starter marcusasiabc

    (@marcusasiabc)

    pankaj064, thanks for you kind help.
    I updated line no 2 of front-page.php and header.php in the child theme, but the site title is still not showing.
    Do you think I have extra php page to modify?
    Thanks again.
    My website:

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Sit title does not show’ is closed to new replies.