WordPress.org

Ready to get started?Download WordPress

Forums

No logo on 'home' page (5 posts)

  1. whitezero
    Member
    Posted 1 year ago #

    I'm working on a wordpress site (currently local host) and logo is not showing up on my 'home' page that is any page that i set as 'Static Front Page' logo just disappears.
    Any thought where i should look?

    thanks

  2. randinicole
    Member
    Posted 1 year ago #

    Where is your logo located, if it is showing up on regular pages (non front page) and blog post pages, modify your index.php file. It is hard to give you a fix without knowing what your code is or where things are located, but from what you posted it seems that something is missing from the index.php that is found in page.php or single.php

  3. whitezero
    Member
    Posted 1 year ago #

    Logo is at the top of the page. I can't find page.php or single.php ,but I do have content-page.php and content-single.php

    Here is the code in content-page.php
    <!-- tpl: content page -->

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header">
    <h1 class="entry-title"><?php the_title(); ?></h1>
    </header><!-- .entry-header -->

    <div class="entry-content">
    <?php the_content(); ?>
    <div class="clear"></div>
    <?php wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'jc-one-lite') . '</span>', 'after' => '</div>')); ?>
    </div><!-- .entry-content -->

    <?php edit_post_link(__('Edit', 'jc-one-lite'), '<span class="edit-link">', '</span>'); ?>

    </article><!-- #post-<?php the_ID(); ?> -->

    ...and code in content-single.php
    <!-- tpl: content single -->
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header">
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php if ('post' == get_post_type()) : ?>
    <div class="entry-meta">
    — <?php printf(__('by %s on', 'jc-one-lite'), get_the_author()); ?> <?php the_date(); ?>
    </div><!-- .entry-meta -->
    <?php endif; ?>
    </header><!-- .entry-header -->

    <?php if (has_post_thumbnail()) {
    the_post_thumbnail('large-feature');
    } ?>

    <div class="entry-content">
    <?php the_content(); ?>
    <div class="clear"></div>
    <?php wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'jc-one-lite') . '</span>', 'after' => '</div>')); ?>
    </div><!-- .entry-content -->

    <?php if ('post' == get_post_type()) {
    $categories_list = get_the_category_list( __( ', ', 'jc-one-lite' ) );
    $tags_list = get_the_tag_list('', __(', ', 'jc-one-lite'));
    if ($categories_list || $tags_list){
    ?>
    <footer class="entry-meta">
    <?php
    if ( $categories_list ) { ?>
    <div class="entry-categories">
    <?php printf(__('<span>Posted in</span> %1$s', 'jc-one-lite'), $categories_list); ?>
    </div><!-- .entry-categories -->
    <?php
    }

    if ($tags_list){
    ?>
    <div class="entry-tags">
    <?php printf(__('<span>Tagged</span> %1$s', 'jc-one-lite'), $tags_list); ?>
    </div><!-- .entry-tags -->
    <?php } ?>
    </footer>
    <?php }} ?>

    </article><!-- #post-<?php the_ID(); ?> -->

    Let me know if you see the problem.

    Thanks

  4. whitezero
    Member
    Posted 1 year ago #

    Am i looking in the wrong place?

  5. whitezero
    Member
    Posted 1 year ago #

    I figured it out myself. I screwed up CSS on my own earlier... too long to explain. I found a mistake using Chrome 'Inspect Element' feature.

Topic Closed

This topic has been closed to new replies.

About this Topic