featured image alignment in eleven40

Community Forums Forums Design Tips and Tricks featured image alignment in eleven40

This topic is: not resolved

This topic contains 12 replies, has 2 voices, and was last updated by  faisal 5 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #110570

    faisal
    Participant
    Post count: 36

    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/
    #110675

    braddalton
    Participant
    Post count: 10594

    alignnone

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


    #110756

    faisal
    Participant
    Post count: 36

    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

    #110761

    braddalton
    Participant
    Post count: 10594

    Look for !is_admin in the code and remove it


    #110831

    faisal
    Participant
    Post count: 36

    thank you,

    but I could not find is_admin in style sheet

    Faisal

    #110849

    braddalton
    Participant
    Post count: 10594

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


    #111438

    faisal
    Participant
    Post count: 36

    thanks,

    Actually I dont see !is_admin in functions.php

    #111458

    braddalton
    Participant
    Post count: 10594

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


    #111461

    faisal
    Participant
    Post count: 36

    thanks,

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

    #111578

    braddalton
    Participant
    Post count: 10594

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


    #111703

    faisal
    Participant
    Post count: 36

    Thanks, I have pasted functions code at following link

    #111704

    faisal
    Participant
    Post count: 36

    Thanks, I have pasted functions code at following link

    rgds

    Faisal

    #111705

    faisal
    Participant
    Post count: 36

    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′ ),
    ) );

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

You must be logged in to reply to this topic.