Viewing 7 replies - 1 through 7 (of 7 total)
  • I can’t see an obvious issue in your posted code but a link to a page demonstrating the problem might help.

    the link html tag in line 15 is not closed, nor is the img tag in that line finished.

    <a href="<?php the_permalink(); ?>" class="post-thumbnail"><img src="<?php bloginfo('template_url'); ?>/............ /></a>

    although it is not clear why this would continue the h2 tag (?)

    ps:
    you are talking about ‘post’ but are pasting page.php which displays static pages – is that on purpose?

    Thread Starter Dusty

    (@ameliapower)

    Thanks alchymyth. I fixed those tags. It didn’t fix this issue. Here’s a link esmi.
    https://www.maxlovesmuse.com/category/the-epicurean/

    but when I put an image in it’s no longer a link. Still not getting my styling to work though, for the text and for the image:
    https://www.maxlovesmuse.com/category/brooklyn/

    Appreciate your help.

    ‘the-epicurean’ has the same error as the earlier pasted code

    – this seems to be in a category archive page – therefore check category.php (or if your theme does not have a category.php, archive.php)

    ‘brooklyn’ has a broken image code:
    …<img src=”https://www.maxlovesmuse.com/wp-content/themes/max&muse /> `

    please pastebin the code of category.php or archive.php

    Thread Starter Dusty

    (@ameliapower)

    Thanks. I fixed the links earlier on archive, page, featured and index.php as it had that same code and unclosed tag.

    here’s the archive.php
    https://pastebin.com/L9EpvY6B

    i shifted the " a bit higher up:

    <?php } else { ?>
            <a href="<?php the_permalink(); ?>" class="post-thumbnail"><img src="<?php bloginfo('template_url'); ?>" /> </a>
            <?php } ?>

    is this <img src="<?php bloginfo('template_url'); ?>" /> meant to be a default image if the post has no thumbnail?

    https://codex.www.ads-software.com/Function_Reference/bloginfo

    there might be a image folder and image name missing.

    Thread Starter Dusty

    (@ameliapower)

    That fixed the linking issue in the text. Thanks.

    To be honest I don’t know concerning the bloginfo part. My stylesheet was working nicely before I put it to wp. When I add my images into a post I don’t get any of the styling. If you think it means a default image? I should probably take it out as I don’t necessarily want that.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘post styling taking on h2 styling(header)’ is closed to new replies.