-
Author
-
February 19, 2016 at 07:56 #104950
lucasmarstonmusic
ParticipantI’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.February 19, 2016 at 18:45 #105126Radu
ModeratorHi,
Please add this function to wp-content/themes/kleo-child/functions.php
COPY CODEfunction 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 solutionFebruary 19, 2016 at 19:58 #105150lucasmarstonmusic
ParticipantThis 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.February 19, 2016 at 20:16 #105174Radu
ModeratorYou 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 solutionFebruary 19, 2016 at 23:03 #105215lucasmarstonmusic
ParticipantThere 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.February 19, 2016 at 23:13 #105218lucasmarstonmusic
ParticipantOh I found the child theme and uploaded and activated it. But wont this erase all the work ive done on the other theme?
February 19, 2016 at 23:18 #105220lucasmarstonmusic
ParticipantI’m confused, I installed the child theme and now my site is completely different than everything I just built.
February 19, 2016 at 23:21 #105222lucasmarstonmusic
ParticipantI went to file manager to wp-content/themes/kleo-child/functions.php …..now what?
February 20, 2016 at 13:19 #105290Radu
ModeratorHi,
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 solutionFebruary 22, 2016 at 07:09 #105644lucasmarstonmusic
ParticipantI 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.
February 22, 2016 at 17:45 #105737Radu
ModeratorPlease 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 solutionFebruary 22, 2016 at 17:51 #105738Radu
ModeratorRegarding 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 solutionFebruary 26, 2016 at 23:53 #106992lucasmarstonmusic
ParticipantI’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?
February 29, 2016 at 18:13 #107414Radu
ModeratorHi,
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 solutionMarch 1, 2016 at 03:09 #107529lucasmarstonmusic
ParticipantThat being my username and password for my hosting? Will I be able to make further changes to the same function later on?
March 1, 2016 at 03:50 #107531lucasmarstonmusic
ParticipantIdeally 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.March 1, 2016 at 13:32 #107600Radu
ModeratorHi,
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 solutionMarch 1, 2016 at 22:20 #107908lucasmarstonmusic
ParticipantNo 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.
March 2, 2016 at 17:18 #108017Radu
ModeratorIt 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 solutionMarch 4, 2016 at 15:03 #108514Radu
ModeratorHi 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 -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.