-
AuthorPosts
-
November 6, 2024 at 3:55 am #1470718Frank ScheuberGuest
I bought a new Enfold license with a 1 year maintenance contract today. But I can’t find a way to write an amount in the support. That’s why I’m trying it this way:
My question is:
How can I display not only the text but also the post image in the categories of a blog? I use the Avia Layout Architect Editor for all my posts.November 7, 2024 at 5:47 am #1470805Hey Frank Scheuber,
Thank you for the inquiry.
The featured images seem to be displaying correctly on the category page (see private field). Did you manage to resolve this?
To properly open a thread here in the forum, please register an account using your purchase code at the following link:
// https://kriesi.at/support/register/
Once registered, you can open a new thread or ticket using this form: https://kriesi.at/support/forum/enfold/#new-post
Best regards,
IsmaelNovember 7, 2024 at 7:45 am #1470820Unfortunately, when I create a category, I don’t see any images in the category overview. What I’ve done now is create pages that use the Avia Layout Architect Editor for blog posts. Then the images appear. I’ve now created a widget for the categories called TEST. When you click on the posts there, no post images are displayed.
You can tell by the link, because the sub dir is missing. The link should read: https://www.pattayablog.com/category/allgemein/November 7, 2024 at 7:51 am #1470822Hi,
Thank you for the update.
Looks like there are no featured images assigned to the post (see private field). Please make sure to assign a featured image. Check the link below:
// https://wordpress.com/support/featured-images/#set-a-featured-image
Best regards,
IsmaelNovember 7, 2024 at 8:34 am #1470824I think I always do this for all blogs and posts. However, I use Avia: See this picture: Einstellungen
November 8, 2024 at 6:08 am #1470871Hi,
Thank you for the update.
The posts still have no featured images. Please check the private field. The images that you see there are added directly in the editor, which will not be automatically set as a featured image. You have to apply the featured images manually.
Best regards,
IsmaelNovember 8, 2024 at 6:21 am #1470872Ist this no featured image? Posts
If not, than tell me exactly, how i have to do that manually, please.November 8, 2024 at 6:41 am #1470876Hi!
Thank you for the screenshot.
Looks like you’ve already added featured images to the posts, but for some reason, they aren’t displaying in the actual posts. Please provide the login details in the private field so we can check the settings.
Regards,
IsmaelNovember 8, 2024 at 6:48 am #1470877I create
- This reply was modified 1 week, 2 days ago by frasche2024.
November 8, 2024 at 8:27 am #1470885Hi,
Thank you for the inquiry.
The Appearance > Theme File Editor is not accessible, so we’re unable to edit the functions.php file. Please add this filter to modify the layout of the archive or category pages:
add_filter('avf_blog_style','avf_blog_style_mod', 10, 2); function avf_blog_style_mod($layout, $context){ if($context == 'archive') $layout = 'single-big'; return $layout; }
Best regards,
IsmaelNovember 8, 2024 at 10:57 am #1470891It works, but the images are too small in height. Can I still adjust the height in CSS?
November 10, 2024 at 4:19 pm #1471012Hi,
Try this function instead:add_filter('avf_blog_style','avf_blog_style_mod', 10, 2); function avf_blog_style_mod($layout, $context){ if($context == 'archive') $layout = 'full'; return $layout; }
If you copy this code from an email, make sure that the quotes are not changed to “curly quotes” when you paste into your child theme functions.php
Is the link below correct?
If this doesn’t help please enable Appearance > Theme File Editor so we can test, or provide FTP accessAs for your support contract please enter your new purchase code at register and then go to the support forum and then open a new thread for your next thread, first we will finish this one question about the image height.
Best regards,
MikeNovember 12, 2024 at 12:56 am #1471120I have now installed the PHP code in the latest version from you. That does NOT work!
So I have now changed the wp-config.php so that the theme editor works. So you can make changes but please let me know what you changed.
I removed the widget CATEGORIES because I can’t use it without the correct image view.November 12, 2024 at 4:09 am #1471132Hi,
Thank you for the update.
Please revert back to the previous avf_blog_style filter:
add_filter('avf_blog_style','avf_blog_style_mod', 10, 2); function avf_blog_style_mod($layout, $context){ if($context == 'archive') $layout = 'single-big'; return $layout; }
Then, include the hook below:
function avf_blog_featured_image_size_mod() { global $avia_config; $avia_config['image_size'] = 'full'; } add_action('after_setup_theme', 'avf_blog_featured_image_size_mod');
Best regards,
IsmaelNovember 12, 2024 at 4:30 am #1471134That not work. Same as before : functions.php in Child
November 13, 2024 at 5:51 am #1471185Hi,
It works, but the images are too small in height. Can I still adjust the height in CSS?
You may need to adjust the default size of the entry_without_sidebar thumbnail. Please add this filter in the functions.php file:
function avf_customization_modify_thumb_size( $size ) { $size['entry_without_sidebar'] = array( 'width' => 9999, 'height' => 9999 ); $size['entry_with_sidebar'] = array( 'width' => 9999, 'height' => 9999 ); return $size; } add_filter( 'avf_modify_thumb_size', 'avf_customization_modify_thumb_size', 10, 1 );
Then use the following plugin to regenerate the thumbnails:
// https://wordpress.org/plugins/force-regenerate-thumbnails/
IMPORTANT: Please make sure to create a site backup or restore point before proceeding.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.