Slider Image Resize?
Basically there’s two things that you need to do:
1. Define a new thumbnail size using the
add_image_size()function inside your (child theme’s)
2. Modify the theme’s
functions.phpfile to use the new thumbnail size. In version 1.1.2, modify line 944 to look like this:
<?php echo graphene_get_slider_image($post->ID, array(150, 150, true)); ?>
Change the values in the
array(150, 150, true)part to reflect the width and height of the new image size that you have created in Step 1.
When you do this, all new pictures uploaded will have a thumbnail created according to the new image size you defined, in addition to the WordPress’ default image sizes, which you can then use as the size for the image slider.
Syahir, I’ve already tried lots of things but I can’t seem to make this work. The image is still the same size. Please help. Can you please let me know the exact details for your Step 1 above? What is the exact code for that? And where should that code be placed, in what line number? Or if you have a simpler solution than this, please let me know. Really need this. Thanks.
Hi Carmela Marie
Remember to add URL/link to Your site.
That aside, here goes:
Then again, I can help You with Child Theme 🙂
Both ways (Syahir’s and yours) are not working for me. 🙁 I’ve already tried lots of ways to implement Syahir’s solution but it still doesn’t work. I’ve tried yours too, but no success for me. 🙁 I’m using Graphene 1.1.2. The url for my site is http://dev.greenbeltchapel.org/ . Sorry if I didn’t give this url before, as it’s still a bit messy and boring as I’m not yet done working on the site. Please help. Thanks.
When Im looking at Your site there is some Changes made in The Themes Core files. If You really want to Control this Project down the line, my first advice must be to make The Graphene Child Theme with the changes You have made in style.css and maybe other files. Take Your time & read (only) the first post with links here: https://forum.graphene-theme.com/topic/how-to-modify-the-theme-using-a-child-theme#post-54
Then come back with any Question 🙂
Hey Kim, thanks so much for all your help! I have solved my problem by upgrading my Graphene version from 1.1.2 to 1.3.1. I love the new size of the image in the slider now!
But I have a problem when I upgraded to 1.3.1. The header image doesn’t change for other pages/posts even when I have already checked/clicked the Disable Featured Image replacing header image checkbox in the Header Display Options (of Graphene Options). This was working in 1.1.2 and I had different featured images (in the header) for different pages/posts. Is this a bug in 1.3.1? If yes, how do I fix this? Where in the code should I modify to have this working again?
Oooops! Sorry Syahir. What I meant was that I have unchecked it, not checked it. Anyway, I tried checking and unchecking the option again right now, but the header image didn’t change, it’s always showing the same header image. Can you please tell me if there is something in the code that needs to be modified?
You must be logged in to reply to this topic.