Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Image sizes and others
New Landing › How can we help? › Themeforest Theme Support › Dante › Image sizes and others
- This topic has 15 replies, 4 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Dante
-
July 20, 2016 at 1:29 pm #282636
Hi team,
I am having a few issues as follows:
1.) image sizes on blog (http://cqshs.farm/blog/)
I’ve set the mini right sidebar blog style but images are too big. How can I set to be displayed like this Dante demo?2.) Feature image and vdo
If I added a featured image for the vdo post, the featured image will be shown above vdo on the post. For example, from this page, the featured image sit above the vdo one. Is it possible that I would like to set:
2.1.) no featured image displayed but only show vdo.
2.2.) But still keep featured image option on as it will be shown as thumbnail at Home page or Blog page.The page at the moment in on Maintenance mode but I’ve given the access here.
Thank you very much.
Regards,July 21, 2016 at 1:00 pm #2829701) You will need to install and activate your child theme so you can override this function and change the image settings:
Inside
/dante/includes/sf-post-formats.php
there is a function called:sf_get_post_item()
. This needs to be copied into your child themefunctions.php
file. Once there, you can change the image sizes.2) Sure, set the thumbnail and video into (Detail Media Options and Thumbnail Options ) in the page post Meta Options. Remove the video from your content.
August 2, 2016 at 6:40 am #285368Hi David,
I thought I have replied your answer a few days ago but just found out that my answer disappeared which is very strange. I apologise for the late reply.
According to your recommendation here
2.) It is fine. thanks1) You will need to install and activate your child theme so you can override this function and change the image settings:
Inside /dante/includes/sf-post-formats.php there is a function called: sf_get_post_item(). This needs to be copied into your child theme functions.php file. Once there, you can change the image sizes.
I’ve already activated child theme – Dante if it is what you meant. Do you mean to copy the following code into the functions.php file?
August 3, 2016 at 9:49 am #285614Hi,
Do not post large amounts of code like that. For large code blocks, use a service such as https://gist.github.com/
Yes, you are correct. It needs to be within the child theme
functions.php
file.Thanks.
August 3, 2016 at 10:58 am #285640Hi Dave,
555…I am sorry and thanks for the good tip.
Regards,
August 3, 2016 at 11:23 am #285648Thanks David
August 6, 2016 at 1:26 pm #286155Hi David,
I’ve added the block of code sf_get_post_item() in the functions.php but I failed to get the image shows as in Dante Demo.
I’ve tried to add images on either Thumbnail options under Meta Options or Featured image. The images still displayed in a large size.
Another point is excerpt, I set excerpt to 200 but no excerpt displayed if I used Swift Page Builder to set but excerpt showed if I didn’t use Swift Page Builder. Please refer to the attached file.
Did I do something incorrectly?
Thank you.
Regards,Attachments:
You must be logged in to view attached files.August 8, 2016 at 4:20 pm #286370You have not activated or installed the child theme? The changes must be inside the child theme?
Thanks.
August 16, 2016 at 3:30 am #287568Hi David,
I don’t understand your mention “You have not activated or installed the child theme?” Do you mean child theme is Dante? If not Dante, what do you mean by Child theme. Because we can’t activate many theme at once ie Thirty-six theme with Dante. I’ve installed Dante theme otherwise how I use this theme to do my work! Something that I miss your instruction here. Please find where I installed Dante in the attached file manager. I am so sorry I totally confused.
Thank you.
Regards,Attachments:
You must be logged in to view attached files.August 16, 2016 at 4:17 pm #287682Hi,
First have a look at this documentation to understand exactly what is a childe theme.
https://codex.wordpress.org/Child_ThemesResuming, it’s a way to extend(do modifications in) the theme you are using. In the Themeforest download files you will find a dante child zip file.
You should install it like you did with Dante and activate the child theme. Your site at this point still uses Dante and it will look the same but the active theme will be the dante child theme.
Then follow David instructions in this specific reply.
http://www.swiftideas.com/forums/topic/image-sizes-and-others/#post-282970Let us know if you still have any doubt.
-Rui
August 17, 2016 at 3:02 am #287758Hi Rui,
Thank you so much and now I understand more about the child theme in practical sense and where to find child theme.zip.
I’ve downloaded the dante child theme and replace the old function.php and style.css with the ones from the child theme. Then, I copied the part that David recommended from this link http://www.swiftideas.com/forums/topic/image-sizes-and-others/#post-282970.
I copied the whole section of Get Post Item (function sf_get_post_item…)to the end of the function.php. Now, I encountered a fatal error.Fatal error: Call to undefined function sf_get_post_meta() in /home/symbiosi/public_html/cqshs.farm/wp-content/themes/dante/header.php on line 92.
What mistake did I make?
Thank you.
Regards,August 17, 2016 at 3:32 am #287761Hi Rui,
I am sorry for the prior message. I am now right. That fatal error disappeared. I did a mistake as you can see. I’ve activated Child Theme and copied the whole section of Get Post Item (function sf_get_post_item…) to the child theme function.php.
Thank you.
Regards,August 17, 2016 at 6:23 am #287766Hi Rui and David,
I think I am setting the child theme correctly as your suggestions to set image sizes. Is there anything else do I have to do apart from the installation and activate the child theme as I am still unable to set the image sizes as small as in the Dante Demo? Mine looks big and all are in different sizes which look not professional.
On the page, I used Swift Page Builder to choose Blog element and then set the Blog type to be Mini. And on each post page, I set images in Meta Options.
I’ve attached some screenshots for your reference. Please let me know if I will need to fix something.
Many thanks.
Regards,Attachments:
You must be logged in to view attached files.August 18, 2016 at 9:58 am #288002You did not amend the sizes in the supplied code? I change the heights for you, now it crops your images.
if ($blog_type == "mini") { if ($sf_sidebar_config == "no-sidebars") { $thumb_width = 446; $thumb_height = 355; $video_height = 335; } else { $thumb_width = 370; $thumb_height = 260; $video_height = 260; } $gallery_size = 'thumb-image'; }
August 19, 2016 at 1:23 pm #288348Hi David,
Thank you for your support. I would think that would be the case because I couldn’t find any places to amend the image sizes in the backend like some plugins allow to do so. But I thought I should consult the expert before I do amend the code.
Thank you for your brilliant support from the whole team.
Regards,
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.