This topic has 23 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #104950
     lucasmarstonmusic
    Participant

    I’m looking to have the blog posts just use the first photo placed in the post to appear on the home page but they get cut off or if I use the Focus or Highlight feature they may be blurry. What size is best for this image so that I get the best looking post in my home or blog page? Thanks.

     

     

    Attachments:
    You must be logged in to view attached files.
    #105126
     Radu
    Moderator

    Hi,

    Please add this function to wp-content/themes/kleo-child/functions.php

    COPY CODE
    
    function KleoCustomImagesSizes () {
         global $ kleo_config;
         // Post image sizes for carousels and galleries
         $ Kleo_config [ 'post_gallery_img_width'] = 555;
         $ Kleo_config [ 'post_gallery_img_height'] = 333;
    }
    add_action ('after_setup_theme', 'KleoCustomImagesSizes');
    

    Replace 555 and 333 with your desired image dimentions

    Let me know

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #105150
     lucasmarstonmusic
    Participant

    This is through signing into my hosting cpanel – file manager etc. right? I have kleo but no kleo child. I tried putting it in to my quick css and changing those numbers but didn’t get any results.

    I dunno if this image helps…..

    Attachments:
    You must be logged in to view attached files.
    #105174
     Radu
    Moderator

    You can upload the kleo child theme from wp-admin -> appearance -> themes -> add new

    After child theme installation please enable the child theme.

    Then navigate from file manager to wp-content/themes/kleo-child/functions.php

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #105215
     lucasmarstonmusic
    Participant

    There is no Kleo Child Theme when I search in themes. I don’t find one in my Kleo files from when I downloaded Kleo either. Was it supposed to have come in the folder?

    Attachments:
    You must be logged in to view attached files.
    #105218
     lucasmarstonmusic
    Participant

    Oh I found the child theme and uploaded and activated it. But wont this erase all the work ive done on the other theme?

    #105220
     lucasmarstonmusic
    Participant

    I’m confused, I installed the child theme and now my site is completely different than everything I just built.

    #105222
     lucasmarstonmusic
    Participant

    I went to file manager to wp-content/themes/kleo-child/functions.php …..now what?

    #105290
     Radu
    Moderator

    Hi,

    Regarding to this :

    I’m confused, I installed the child theme and now my site is completely different than everything I just built.

    That’s because the changes that you have made to theme options has remained in parent theme you can export theme options by activating again parent theme then go to theme options -> import/export -> download data file then activate child theme and go again to theme options -> import/export -> import from file (here you will need to paste the content of the exported file .json file).

    Regarding to

    I went to file manager to wp-content/themes/kleo-child/functions.php …..now what?

    now you should edit that file and to paste on file the code that i have provided to you , you can change the width and height with a higher values, let me know if this will solve your issue.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #105644
     lucasmarstonmusic
    Participant

    I followed the instructions exactly as explained. I pasted the content of the exported .json file from the kleo parent theme into the child theme but nothing changed at all.

    I pasted the code you provided into the functions.php and I received a server 500 error and could not visit the site. I went back and deleted the code and now I can visit the site.

    #105737
     Radu
    Moderator

    Please try again by pasting the snippet from here : http://pastebin.com/raw/6LgSeddX

    Let me know

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #105738
     Radu
    Moderator

    Regarding to this

    I followed the instructions exactly as explained. I pasted the content of the exported .json file from the kleo parent theme into the child theme but nothing changed at all.

    In that way you can import the theme settings from parent to child, you can verify if the settings was imported if the settings from theme options panels are the same as in parent like general options tab and the rest.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #106992
     lucasmarstonmusic
    Participant

    I’m still getting the error 500 when trying to enter the code provided into the functions.php of the child theme. I tried it from the pastebin link you gave but that doesnt work. Any other ideas?

    #107414
     Radu
    Moderator

    Hi,

    The 500 error is caused by some wired character, can you provide credentials to paste that function for you ?

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #107529
     lucasmarstonmusic
    Participant

    That being my username and password for my hosting? Will I be able to make further changes to the same function later on?

    #107531
     lucasmarstonmusic
    Participant

    Ideally I’d get posts looking the size in the photo attached or the size of the posts on your Services page. I’d need to know what my ideal photo size must be to fit these dimensions I choose so that the photo fits perfectly when people see my listed posts.

    Attachments:
    You must be logged in to view attached files.
    #107600
     Radu
    Moderator

    Hi,

    You was able to paste that function and to get that function to works i don’t need to credentials, in our services page, the images are square 480×480 but you can use an rectangular type of images by using a 16:9 ration an example resolution is 640 x 360

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #107908
     lucasmarstonmusic
    Participant

    No I was not able to get that pasted in the function.php. Whenever I try my site gets an error. The photos that I attached are of an example that I like.

    #108017
     Radu
    Moderator

    It seems that the site from screenshot is using 350×200 img size thumb

    Please provide ftp access to paste that function for you

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #108152
     lucasmarstonmusic
    Participant
    This reply has been set as private.
    #108333
     Radu
    Moderator
    This reply has been set as private.
    #108369
     lucasmarstonmusic
    Participant
    This reply has been set as private.
    #108373
     lucasmarstonmusic
    Participant
    This reply has been set as private.
    #108514
     Radu
    Moderator

    Hi again,

    Unable to connect via ftp,

    For the folders that are not there, create the folders, go in kleo-child create new folder named k_elements here you should upload the php file from the zip archive.

    That’s all now you should see the new images sizes in your home in Highlight widget.

    If you cannot handle with these, please provide me correct FTP details, you are able to connect via ftp with the details that you have provided to me ? you can ask for assistance at your hosting provide regarding the ftp accounts.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 24 posts - 1 through 24 (of 24 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?