• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Genesis Widget Featured Amplified and CSS

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Genesis Widget Featured Amplified and CSS

This topic is: not resolved

Tagged: "Genesis Widget Featured Amplified", GWFA, news, nickthegeek

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 8 months ago by Gary Jones.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 5, 2013 at 11:49 am #60891
    ilya
    Member

    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/
    October 18, 2013 at 8:06 pm #67505
    Gary Jones
    Member

    This looks solved?


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble