Hi guys, two quick questions:
1. I am trying to implement featured images for our categories, as a “fallback” option, in case the author does not include an image with their articles. We have been able to assign the fallback images using “Category Featured Images – Extended” plugin, and while it works on category pages, but your theme is not able to retrieve the featured images on pages that have been built using TD Composer’s BLOCKS when they have the < | > pagination feature ON, while ajax retrieves the article and the next set of posts, it will NOT pull the category image if article is on a second or third page.
Can you help me implement this feature while using your TD Composer Blocks?
2. How do i add the td-post-category tag to block 11 inside the featured image, like it is in block 3, as opposed to next to the content below the title…what file do i need to modify so i can use block 3 and still have the td-post-category inside the td-module-thumb?
-
This topic was modified 8 years by
Freddy Meynard.
-
This topic was modified 8 years by
Freddy Meynard.
-
This topic was modified 8 years by
Freddy Meynard.
Hello,
1) sorry but the plugin is not among the tested and recommended plugins so I cannot say for sure if it will work or not. But I have a better solution that does not involve plugins. The theme already has a placeholder image. Simply replace the placeholder image for different sizes here: https://www.screencast.com/t/0YlKP2Z6 keep the file name intact as well as the size of the thumb but replace the image with your preferred fallback image.
2)Some blocks have certain meta info missing or hidden as a design choice. Here is a list of what modules are used on which block: https://forum.tagdiv.com/theme-blocks-modules/
Thank you!
Hi
1. I am not sure i understood the instructions. How do i go about assigning the featured images by category this no-thumb folder? What i see here are fallback thumbnails for the different images sizes, what i need is to have auto-featured images by either category or
author.
2. I just want to know how i can build my own “franken-block” and add a cat-tag inside a thumbnail and what file to modify. I know there is a place to turn them on and off in theme panel, but i wanted was to combine two different layouts.
-
This reply was modified 8 years by
Freddy Meynard.
Hi,
1. The module functionality is to display thumbnails created from manually setting a featured image for posts
– https://forum.tagdiv.com/featured-image-or-video/
– https://forum.tagdiv.com/theme-thumbs/
The theme does not have other functionality for the thumbnails and modules. If a featured image is not set a placeholder will be displayed.
2. You could take a look at how each of the modules you mention is made
– https://www.screencast.com/t/XkB7OVjXYH
That could be possible by modifications in the code, maybe some additional styling as well.
Thanks
Oh, this is too bad. I have exactly the same requirements: implementing a category-specific fallback featured-image for the posts where it is not added. While I was able to make the fallback featured image in the post view by following the instructions here, I’m struggling to have them displayed in the blocks and modules.
I have made changes to loop-single.php and this is what it looks like:
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-thumbnail">
"><?php echo $td_mod_single->get_image(td_global::$load_featured_img_from_template); ?>
</div>
<?php else :
$category = get_the_category();
?>
<div class="entry-thumbnail">
">/wp-content/uploads/category-images/<?php echo $category[0]->category_nicename ; ?>-741x486.jpg" alt="<?php the_title(); ?>" />
</div>
<?php endif; ?>
Is there no piece of code I can write somewhere that will replicate this result in modules?
Thanking you.
Hi,
@soale The modules will display as mentioned above, placeholder images. These are found here in the theme
– https://www.screencast.com/t/7EPGtC5naw5
These images could be replaced with your own if that is what you want, just be sure to use the same name, size and format for the images.
Posts are meant to have featured images, the theme does not have any options in case they do not, it will show a placeholder instead.
Thanks