• 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

featured image alignment in eleven40

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 › Design Tips and Tricks › featured image alignment in eleven40

This topic is: not resolved

Tagged: featured image

  • This topic has 12 replies, 2 voices, and was last updated 11 years, 8 months ago by faisal.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • June 19, 2014 at 9:02 am #110570
    faisal
    Member

    I am using eleven40 theme. I want to use featured image but once I insert it, it appears at the top of text of a post. How would I align it to the left side with text start after it towards right side. I could not see any option.

    rgds,

    faisal

    http://tp://www.telecomlighthouse.com/
    June 19, 2014 at 5:22 pm #110675
    Brad Dalton
    Participant

    alignnone

    You should be able to add that to the code which generates the featured image.


    Tutorials for StudioPress Themes.

    June 20, 2014 at 4:39 am #110756
    faisal
    Member

    Thanks,

    I am new to CSS/wp. So might go with the defualt featured image location

    However

    I am having stange behaviour. I added a featured image to my most recent blog. It is visible when I am signd in. It is not visible when I am signed out.

    Any thoughts

    faisal

    June 20, 2014 at 5:22 am #110761
    Brad Dalton
    Participant

    Look for !is_admin in the code and remove it


    Tutorials for StudioPress Themes.

    June 20, 2014 at 1:54 pm #110831
    faisal
    Member

    thank you,

    but I could not find is_admin in style sheet

    Faisal

    June 20, 2014 at 3:54 pm #110849
    Brad Dalton
    Participant

    The code for your featured image should be in your functions file.


    Tutorials for StudioPress Themes.

    June 25, 2014 at 6:05 am #111438
    faisal
    Member

    thanks,

    Actually I dont see !is_admin in functions.php

    June 25, 2014 at 7:59 am #111458
    Brad Dalton
    Participant

    Can't really help and provide an accurate solution unless i see all the code.


    Tutorials for StudioPress Themes.

    June 25, 2014 at 8:06 am #111461
    faisal
    Member

    thanks,

    is there any way I should share the file, so you can see

    June 25, 2014 at 10:04 pm #111578
    Brad Dalton
    Participant

    Yes. Please paste the code into a Github Gist and link to it from here. Thanks.


    Tutorials for StudioPress Themes.

    June 26, 2014 at 11:42 pm #111703
    faisal
    Member

    Thanks, I have pasted functions code at following link

    June 26, 2014 at 11:44 pm #111704
    faisal
    Member

    Thanks, I have pasted functions code at following link

    rgds

    Faisal

    June 26, 2014 at 11:46 pm #111705
    faisal
    Member

    I try putting link, but it gets deleted, so I am copying pasting the contents here.

    ................................................................................................

    <?php
    /** Start the engine */
    require_once( get_template_directory() . '/lib/init.php' );

    /** Child theme (do not remove) */
    define( 'CHILD_THEME_NAME', 'eleven40 theme' );
    define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/eleven40' );

    /** Add Viewport meta tag for mobile browsers */
    add_action( 'genesis_meta', 'eleven40_viewport_meta_tag' );
    function eleven40_viewport_meta_tag() {
    echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
    }

    /** Add new image sizes */
    add_image_size( 'grid-thumbnail', 270, 100, TRUE );

    /** Create additional color style options */
    add_theme_support( 'genesis-style-selector', array(
    'eleven40-blue' => 'Blue',
    'eleven40-green' => 'Green',
    'eleven40-red' => 'Red'
    ) );

    /** Add support for structural wraps */
    add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'nav',
    'subnav',
    'inner',
    'footer-widgets',
    'footer'
    ) );

    /** Add the page title section */
    add_action( 'genesis_before_content_sidebar_wrap', 'eleven40_page_title' );
    function eleven40_page_title() {
    genesis_widget_area( 'page-title', array(
    'before' => '<div class="page-title widget-area">',
    ) );
    }

    /** Add the after post section */
    add_action( 'genesis_after_post_content', 'eleven40_after_post' );
    function eleven40_after_post() {
    if ( ! is_singular( 'post' ) )
    return;
    genesis_widget_area( 'after-post', array(
    'before' => '<div class="after-post widget-area">',
    ) );
    }

    /** Add 3-column footer widgets */
    add_theme_support( 'genesis-footer-widgets', 3 );

    /** Register widget areas */
    genesis_register_sidebar( array(
    'id' => 'page-title',
    'name' => __( 'Page Title', 'eleven40' ),
    'description' => __( 'This is the page title section.', 'eleven40' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'after-post',
    'name' => __( 'After Post', 'eleven40' ),
    'description' => __( 'This is the after post section.', 'eleven40' ),
    ) );

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2026 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