genesis_setup

Community Forums Forums General Discussion genesis_setup

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  mmjaeger 1 year, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43604

    mmjaeger
    Participant
    Post count: 65

    I got something like this in my child theme:

    <code>//* Child theme setup
    add_action( ‘genesis_setup’, ‘child_theme_setup’, 15 );
    function child_theme_setup() {

    // doesn’t seem to get executed
    }</code>

     

    however, the function doesn’t seem to get executed at all – what am I missing?

    #43626

    braddalton
    Participant
    Post count: 10254

    Can you paste the full code on Pastebin and link to it here please.


    #43627

    mmjaeger
    Participant
    Post count: 65

    that is the full code

    #43631

    braddalton
    Participant
    Post count: 10254

    What do you want to do with the code?


    #43632

    mmjaeger
    Participant
    Post count: 65

    for instance something like this

    `
    /**
    * Grid Image Sizes by Bill Erickson
    *
    */
    function child_grid_image_sizes() {
    echo ‘setting up sizes’;
    var_dump();
    add_image_size( ‘child_grid’, 175, 120, true );
    add_image_size( ‘child_feature’, 570, 333, true );
    }
    add_action( ‘genesis_setup’, ‘child_grid_image_sizes’, 20 );`

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.