New Landing How can we help? Themeforest Theme Support Dante Image sizes and others

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #282636
    bnksmile
    Member
    Post count: 21

    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,

    #282970
    David Martin – Support
    Moderator
    Post count: 20834

    1) 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.

    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.

    #285368
    bnksmile
    Member
    Post count: 21

    Hi 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. thanks

    1) 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?

    #285614
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    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.

    #285640
    bnksmile
    Member
    Post count: 21

    Hi Dave,

    555…I am sorry and thanks for the good tip.

    Regards,

    #285648
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks David

    #286155
    bnksmile
    Member
    Post count: 21

    Hi 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.
    #286370
    David Martin – Support
    Moderator
    Post count: 20834

    You have not activated or installed the child theme? The changes must be inside the child theme?

    Thanks.

    #287568
    bnksmile
    Member
    Post count: 21

    Hi 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.
    #287682
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    First have a look at this documentation to understand exactly what is a childe theme.
    https://codex.wordpress.org/Child_Themes

    Resuming, 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-282970

    Let us know if you still have any doubt.

    -Rui

    #287758
    bnksmile
    Member
    Post count: 21

    Hi 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,

    #287761
    bnksmile
    Member
    Post count: 21

    Hi 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,

    #287766
    bnksmile
    Member
    Post count: 21

    Hi 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.
    #288002
    David Martin – Support
    Moderator
    Post count: 20834

    You 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';
    			}
    #288348
    bnksmile
    Member
    Post count: 21

    Hi 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,

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register