Genesis Widget Featured Amplified and CSS

Community Forums Forums General Discussion Genesis Widget Featured Amplified and CSS

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Gary Jones 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #60891

    ilya
    Participant
    Post count: 5

    Hello,
    I am using several instances of GWFA on my home page, and would like to customize one using the CSS. What I did was I used Instance Identification Field (twocolumn) on GWFA to mark the GWFA that I need to customize with CSS. Next, I added the following code to the functions.php

    add_action(‘gfwa_before_post_content’, ‘ilyaz_gwfa_content_wrap’);
    function ilyaz_gwfa_content_wrap($instance) {
    if ( $instance['custom_field'] == ‘twocolumn’)
    {
    echo ‘<div class=”post-wrap-ilya”>’;
    }
    }

    add_action(‘gfwa_after_post_content’, ‘ilyaz_gwfa_close_content_wrap’);
    function ilyaz_gwfa_close_content_wrap($instance) {
    if ( $instance['custom_field'] == ‘twocolumn’)
    {
    echo ‘</div> <!– end .post-wrap-ilya –>’;
    }
    }

    But for some reason, I can not get the each of the items in the GWFA to float freely next to each other, like columns. I played with different hooks to get this to work but, can not. My CSS is only
    .post-wrap-ilya {
    float: left;
    width: 45%;
    }
    I am using the NEWS child theme. and the page is at http://hola-china.net/genesis/

    Thank you!

    http://hola-china.net/genesis/
    #67505

    Gary Jones
    Moderator
    Post count: 635

    This looks solved?


    Changes in Genesis 2.0 – the ultimate guide to every single change in Genesis Framework 2.0, 2.0.1 and 2.0.2 (all 159 of them!) | @GaryJ

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

You must be logged in to reply to this topic.