Results 1 to 5 of 5

Thread: Override 'homepage-thumb'

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    4

    Override 'homepage-thumb'

    I have a child theme based on Imbalance 2 and I'm trying to create a function in my functions.php to override the 'homepage-thumb' set in Imbalance 2's function file. But I can't figure out a way to do this without changing the Imbalance 2 function file (which I don't want to do). Does anybody know how to do this? Or is there a better solution to my problem: I want to have the thumbs be 220px instead of the theme's 210px. What is the best way to do this?

  2. #2
    Junior Member
    Join Date
    Dec 2011
    Posts
    4

    I found one answer myself: Copy the 'imbalance2_setup' to the child functions file

    In order to override Imbalance 2 setting the thumb images to 210px, I copied the whole imbalance2_setup function to the child's function.php, and then added this line inside of it:

    Code:
    add_image_size( 'homepage-thumb', 220 );
    (220 is my preference for the image width.)

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    4

    And ...

    And I also added this to inside of the imbalance2_setup function:


    Code:
    set_post_thumbnail_size( 220 );

  4. #4
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Hi ultramartin,

    Good work!
    Any idea how I could do a similar thing in imbalance? There's no imbalance-setup function...
    Thanks!
    Last edited by rubysue; 05-01-2012 at 07:09 PM.

  5. #5
    Junior Member
    Join Date
    Dec 2011
    Posts
    4
    Quote Originally Posted by rubysue View Post
    Any idea how I could do a similar thing in imbalance? There's no imbalance-setup function...
    Sorry, rubysue ... I haven't worked with Imbalance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •