Canard theme–Excerpts no longer showing images

  • Unknown's avatar

    I love the look of the Canard theme but don’t like the way that the featured images display (full width behind the headline of any story). As a work-around, I insert the main image into the body of my blog and then have been copying the HTML and adding it to the “Excerpt” module. This was working and the images were showing exactly as I wanted them on the blog and category pages, but today I went on and no images are displaying at all. How do I get back images in excerpts? I tried testing other HTML tags and they work, so I’m not sure why <img src > no longer does.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi

    Canard was updated two days ago (https://wordpress.org/themes/canard/) so probably the developers done something that makes it not available anymore to use images on excerpt.

    I tagged this thread as modlook so staff can take a look at your case. Let’s hope they have a better anwers to your problem.

    cheers

  • Hi, I’d be happy to look into this. On standard, non-featured posts, the featured image will appear as a square thumbnail. You can see that on the demo here:
    https://canarddemo.wordpress.com/ — scroll down to “The best prototyping apps?” for the first example.

    If you’re using the “image” post type, it will put the image behind the headline (see “Wide Angle Lense” or “The perfect cocktail” on the demo).

    In both cases, the content would look weird with an extra image showing up in the excerpt, so I can see why extra images would be stripped out. But I think by choosing the right post type, you might be able to get the effect you want anyway.

    Also, if you happen to want to use Featured Posts like the ones in the demo, you would just need to set up a featured post tag. To do that, tag a few posts “featured” then go to Customize > Featured Content and type “featured” for the tag there. Or you can use a different word, too. Just make sure they match. More info here:
    https://theme.wordpress.com/themes/canard/

  • Unknown's avatar

    Hi. Thanks for your reply. I am fine with the square thumbnails appearing where they do on blog pages and category pages. My problem is that on the post itself, even on a standard post, that image still appears behind the headline. Mine is not an image-heavy blog so my images are often not large enough for this to work properly or look good. My solution has been omitting the featured image, like I do here: http://leahkonen.com/2015/07/10/well-i-guess-its-safe-to-say-ive-started-something-new/

    However, when something has no featured image, nothing shows up on the blog page but text: http://leahkonen.com/blog/

    Excerpt was the only work-around that allowed me to not have an image behind the headline on the post page but also let an image appear on the blog/cat pages. Is there any way to revert this back or edit my CSS to allow this? It was working well for me for awhile.

  • Unknown's avatar

    One other option would be to find away to exclude featured images from automatically being pulled into your actual post and displayed behind the headline. That would be great but I couldn’t figure it out in the CSS.

  • Unknown's avatar

    One other option would be to find away to exclude featured images from automatically being pulled into your actual post and displayed behind the headline. That would be great but I couldn’t figure it out in the CSS.

  • You can revert your CSS, sure. There is a revisions link in the editor. Something like this may also work:

    .single .post-thumbnail {
    	display: none;
    }
    
    .single .entry-header-wrapper {
    	positon: relative;
    	background: transparent;
    }
    
    .entry-hero .entry-meta, .entry-hero .entry-meta a, .entry-hero .entry-title {
    	color: black;
    	text-shadow: none;
    }

    By the way, I used a test site for creating that CSS since I couldn’t find a good example with a featured image on your site. If you’d like more help, please go ahead and set up a post with a featured image.

  • Unknown's avatar

    Thank you! I tried adding that into my CSS. That worked in terms of making it so the featured image no longer shows, but now the headline appears above the nav and overlaps the header image: http://leahkonen.com/2015/07/10/well-i-guess-its-safe-to-say-ive-started-something-new/

  • Okay. I’ll need to test it with your content. Can you put the featured image back on that post so I can try again?

  • The topic ‘Canard theme–Excerpts no longer showing images’ is closed to new replies.