• Resolved jsntravel

    (@jsntravel)


    Hi,

    I am hoping someone can help me. I am very new to websites but love the Hueman theme. I found where to remove the large featured image in this support area but still want a small image to display in the post? When I preview the post it shows exactly as I want but when I look at the website the image does not appear. My website is notabletravel.com.

    Appreciate any advice.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Hi jsntravel. When I click on the “Arrival of Oculus” post title on the home page it takes me to the post page which has a thumbnail image on the left and content on the right, and a “Leave A Reply” form below. Maybe you have a browser cache that’s holding an old copy of the post page?

    Thread Starter jsntravel

    (@jsntravel)

    When I click on the title I also get what I am looking for but I want that to show up on the first page without having to click on the title. Is that possible?

    OK, sorry, I misunderstood. When you said “in the post” I thought you meant on the actual single post page. Normally, on the home page, all posts will show a thumbnail image except for the “Featured” post which shows a larger image. Is it the Featured post that you want to also have a thumbnail image?

    Thread Starter jsntravel

    (@jsntravel)

    Yes, I would like it to look like the single post. Is that possible?

    We should be able to come up with something for you. Can you post a link to the thread where you found how to remove the featured image? I’m curious to know what modifications you’ve made so far. Thanks.

    Thread Starter jsntravel

    (@jsntravel)

    I am not sure what you mean by the thread but I found in this support site there were instructions to remove lines in 3 files:

    Page.php
    <?php get_template_part(‘inc/page-image’); ?>

    Content.php
    <img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png” alt=”<?php the_title(); ?>” />

    Content-featured.php
    <img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png” alt=”<?php the_title(); ?>” />

    Does that help?

    Sorry; “thread” as in a thread of a conversation, such as this one we have going here.

    After reviewing the changes you made I think they have the following affect:

    Page.php
    <?php get_template_part('inc/page-image'); ?>

    This will remove images on static pages but isn’t the page type being used on your home page.

    Content.php
    <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />

    This removes the image placeholder which is displayed if the post doesn’t have a thumbnail image. This can be controlled in Theme Options > Blog > Thumbnail Placeholder so doesn’t require changing content.php.

    Content-featured.php
    <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />

    Same as #2 above.

    Can you confirm:
    1. Your Front page option is set to display “Your latest posts”.
    2. The “Arrival of Oculus” post has an attached image within the post content, and not a Featured Image.

    Thread Starter jsntravel

    (@jsntravel)

    Yes to both of the questions.

    The “large” image isn’t displayed on the home page post because the post doesn’t have a Featured Image. The changes you made don’t have any affect on the home page post image that I can find. So, if you haven’t made any other changes to those files, I would remove them from your child theme so the changes don’t inadvertently affect some other area of your site when you aren’t expecting it. Let me work on getting a thumbnail image on the home page featured post. Are you using the theme from the wp.org repository or from the theme website?

    Thread Starter jsntravel

    (@jsntravel)

    I changed everything back and you are correct it doesn’t make any difference. Under Theme Options in wp I checked Thumbnail place holder as off which takes away the big box. But still no image on the front page??? I can’t remember how I loaded it…I believe I loaded the child from the theme website but can’t say for sure. Thank you for all your information! Anything else you can suggest would be greatly appreciated.

    The home page won’t display embedded “attachment” images by default like the post page does, so it will take a little bit of a change to get it to work. Let me work on it and I’ll try to get back to you tomorrow. If you look at the parent theme Theme Details it will display the version in the upper right corner.

    Thread Starter jsntravel

    (@jsntravel)

    Any luck with any more ideas?

    I worked on what I thought would be a solution for a couple of hours today, and actually got it to work. It would use an image attached to the post and display it on the home page, category page and the single post page. Looked like it would do the trick until I tried to change one of the images in a post, but it didn’t change on the home or category pages. Turns out that, when you attach an image to a post, WP creates a database record linking the two, and that’s what the WP function I was using used to find the image. However, when you remove the image from the post, WP doesn’t delete the database link record, so the function finds the link record and displays the image on the home and category pages, even though it’s not actually a part of the post content. So, what I’m thinking now, although I haven’t had time to test this, is it might be better to use the existing Featured Image functionality in the theme, assign a featured image to the post (could be the same as one of the images in the post content), and then adjust the image size either with a line of php code or a function or using css. Let me know what you think about that approach.

    Thread Starter jsntravel

    (@jsntravel)

    I am willing to try any suggestion but to be honest I don’t know enough to know any better or to even really understand the changes you are suggestion. Appreciate any advice.

    About to eat dinner; I can work on it a bit later if you’re not in a real hurry. What time zone are you in?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Hueman – no image display in post when feature image is removed’ is closed to new replies.