• 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

Adding Image class to Genesis Featured Widget Amplified plugin

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 › Adding Image class to Genesis Featured Widget Amplified plugin

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years, 6 months ago by AnitaC.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 21, 2013 at 12:22 pm #42056
    jgarner
    Member

    Hi there,

    I posted a message on Nick the Geeks website but haven't heard back. I would like to add a class to the image that is used by the Genesis Featured Widget Amplified plugin

    I'm pretty sure it happens in the "widget.php" file with this code:
    `$image = !empty( $instance['show_image'] ) ? genesis_get_image( array( 'format' => 'html', 'size' => $instance['image_size'], 'attr' => array( 'class' => $align ) ) ) : '';
    $image = $instance['link_image'] == 1 ? sprintf( '%s', $link, the_title_attribute( 'echo=0' ), $align, $image ) : $image;`

    I'm a newbie with php so not too sure how this works but adding class="%s extra_class"> stops the images from showing and array( 'class' => $align, 'extra_class' ) doesn't do anything

    Any ideas on how I can add an extra class here?

    Thanks,

    John

    May 21, 2013 at 1:04 pm #42062
    AnitaC
    Keymaster

    You might want to post it on the GFWA support area on WordPress.org - http://wordpress.org/support/plugin/genesis-featured-widget-amplified.


    Need help with customization or troubleshooting? Reach out to me.

  • 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