Problem with images and comments (hour)
-
Hi,
That is because of the different aspect ratios in the image. We do have used a 16by9 aspect ratio in the output and your images are bigger than that so it’s shrinking to fit in the space. If we do remove the class “embed-responsive embed-responsive-16by9” or change it then it will display oddly in the grid as few are bigger in height and few are smaller in height so to make them all aligned in a row we have used this class. We use 300px x 300px thumbnail of the post featured image there. If you want to change it to a medium or large image then can do by overriding the template file in your active theme. Let me know your thoughts.
Regards,
PatrikI think that i prefer change it to a large image, and in relation to comment’s hours, do you know what is the problem?
Thanks Patrik!
Hi,
For time can you let us know what date and time format are you using on your site? You can check it from Settings->General->Date Format and Time Format. Can you try changing it and see if it works or not? If not then let us know and we will look more into this.
Regards,
PatrikHi Patrik! With the format “Y-m-d” it works!
“If you want to change it to a medium or large image then can do by overriding the template file in your active theme.”
Do you know how i can do this?
Hi,
For that, you will need to override the template https://userswp.io/docs/developers/override-templates/
You can copy the file userswp/templates/bootstrap/posts-post.php in your currently active theme’s /userswp/bootstrap/ folder and modify the line no. 9 as following:
$thumb_url = get_the_post_thumbnail_url( get_the_ID(), 'large' );You can try using ‘full’ in place of ‘large’ which are default WordPress media sizes.
Regards,
PatrikHi Patrik! I try that, but it doesn’t change nothing, i don’t know why
Hi,
Can you create a support ticket on our site http://userswp.io/support where the dev will assist you to fix your issue?
Regards,
PatrikThanks Patrik! I close the thread π
Hi Patrik! I’m sorry to relive the issue but I think it’s important to tell you that what you told me did work, what happened was that the image sizes were so large that it looked bad
It works with this CSS:
.bsui .embed-responsive .embed-responsive-item, .bsui .embed-responsive iframe, .bsui .embed-responsive embed, .bsui .embed-responsive object, .bsui .embed-responsive video { height: auto; }-
This reply was modified 5 years, 4 months ago by
link1921u.
-
This reply was modified 5 years, 4 months ago by
The topic ‘Problem with images and comments (hour)’ is closed to new replies.
(@link1921u)
5 years, 4 months ago
I have two problems in the profile, when viewing the published posts:
– Images look misaligned
– Comments do not show the real time
https://ibb.co/GHnm3qn
The page I need help with: [log in to see the link]