Slider Image Resize?

  • carmelamarie

    #266

    Hi Syahir,

    Can you please tell me where I can change the size of the image in the slider? It’s currently at thumbnail size of 150x150pixels, and I would like to make it bigger/larger. Please help.

    Admin

    Syahir Hakim

    #11810

    No simple way to do this. You’d have to modify the theme’s code or add a new slider function using a child theme.

    carmelamarie

    #11811

    It’s okay for me to modify even if there’s no simple way to do this. Please tell me where in the theme’s code to modify and what to modify.

    Admin

    Syahir Hakim

    #11812

    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) functions.php file.

    2. Modify the theme’s functions.php file 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.

    carmelamarie

    #11813

    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.

    Kim

    #11814

    Hi Carmela

    If You want the slider picture bigger, there might be another way 🙂

    Its not easy to show You anything when you dont supply link to site!

    Then again, try click my Gravatar.. thats it 🙂

    Kim

    carmelamarie

    #11815

    Wow! Kim! I liked what you did to your site! Please teach me how you made your slider picture bigger! I tried the child-theme-thing but it has actually messed up everything. 🙁 Please, please teach me. Help!

    Kim

    #11816

    Hi Carmela Marie

    Remember to add URL/link to Your site.

    That aside, here goes:

    https://forum.graphene-theme.com/topic/my-graphene-slider-picture-setup

    Then again, I can help You with Child Theme 🙂

    Kim

    carmelamarie

    #11817

    Hi Kim,

    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.

    Kim

    #11818

    Hi Carmela

    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 🙂

    Kim

    carmelamarie

    #11819

    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?

    carmelamarie

    #11820

    By the way, aside from checking the mentioned checkbox (above), I have different featured images set already for different pages/posts. So I was wondering why the header image is the same for all pages/posts?

    Admin

    Syahir Hakim

    #11821

    Err….try unchecking that option?

    carmelamarie

    #11822

    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?

    Admin

    Syahir Hakim

    #11823

    Have you made sure that the images are at least 960×198 pixels in dimension?

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

You must be logged in to reply to this topic.