Customizing FT:Blog Widget
-
Hi ThemeGrill,
I hope you can advise me what I’m doing wrong. I wish to place a Blog Widget on my homepage for a select Category, but suppressing the featured image display. Due to previous design decisions, the image for category Cigar Analyses does not display well in the widget, so I want to hide it – but ONLY for this category. Here is what I have done:
– Copied file content-widget-blog.php from the /flash-toolkit/templates directory to my customtheme/flash-toolkit directory
– Changed one line of code:
FROM –> if( ! has_post_thumbnail() ) {
$post_image = ‘image-none’;
TO –> if( (! has_post_thumbnail() ) || ($category = ‘Cigar Analyses’) ){
$post_image = ‘image-none’;Unfortunately this is not working. In fact I cannot tell if my override of the theme’s default content-widget-blog.php is happening at all. Perhaps I’m going about this all wrong and there’s an easier way to suppress the featured image display based on the Category?
Any advice would be greatly appreciated.
- The topic ‘Customizing FT:Blog Widget’ is closed to new replies.