Viewing 6 replies - 1 through 6 (of 6 total)
  • Try replacing the relevant bit of code (from the second line you posted, to the seventh) with this:

    <?php if ($theme->get_option('themater_logo_source') == 'image') { ?>
    "><img src="<?php $theme->option('logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />
    <?php } ?>
    <h1 class="site_title">"><?php $theme->option('site_title'); ?></h1>

    It just removes the if/else and should display the h1 at all times. This code is untested so please make a backup of the file before making any changes.

    Thread Starter josephtruong09

    (@josephtruong09)

    Thank you Shellbot, for helping me.
    I did what you said but it didn’t work. THis is what I get after I change the code:
    My site couldn’t load at the first time, I tried to load it second time and it showed the site like before.
    But I couldn’t find any kind of <h1 when I hit “ctr + U”
    Do you have another way? Cause I dont know anything about coding!!!
    Thanks!

    We should be able to see at the very least an empty h1 tag now, so since that isn’t there it’s probably a caching issue. Try clearing your W3 Total Cache and also your browser cache and see if that refreshes the layout.

    Thread Starter josephtruong09

    (@josephtruong09)

    Hi,
    When I test a site, I always use “private browser” and I just empty all caches. But the results still like before.
    I don’t really know why!

    It looks like (if your site is set to your own timezone and my calculations are correct) the cached page was last generated about an hour and a half ago (view source and scroll right to the very bottom). Sometimes they can be tricky to fully clear, if we can’t think of anything else it might be worth just going into your file directory and renaming anything named “cache” to force a full clear.

    Alternatively it’s possible the code you posted originally is itself surrounded by more if statements that are controlling the output, but obviously it’s a bit tricky to tell without seeing the whole file. I’d concentrate on trying to get the cache to clear before trying anything else.

    Thread Starter josephtruong09

    (@josephtruong09)

    Hi Shellbot,
    I think it’s not about cache issue. About browser, I used private one so it’s not about browser. About my site, because “after” I change the code, my website didn’t load at the first time, it’s only load when I tried to reload it again. So I think it’s not about my site’s cache either.
    Every time I changed the code and it didn’t work, then I changed it just like before so if you load my site now, you won’t find any issues, if that you’re thinking!
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding H1 tag UNDER my logo’ is closed to new replies.