Community Forums › Forums › Archived Forums › Design Tips and Tricks › featured image alignment in eleven40
Tagged: featured image
- This topic has 12 replies, 2 voices, and was last updated 9 years, 10 months ago by faisal.
-
AuthorPosts
-
June 19, 2014 at 9:02 am #110570faisalMember
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 #110675Brad DaltonParticipantalignnone
You should be able to add that to the code which generates the featured image.
June 20, 2014 at 4:39 am #110756faisalMemberThanks,
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 #110761Brad DaltonParticipantJune 20, 2014 at 1:54 pm #110831faisalMemberthank you,
but I could not find is_admin in style sheet
Faisal
June 20, 2014 at 3:54 pm #110849Brad DaltonParticipantThe code for your featured image should be in your functions file.
June 25, 2014 at 6:05 am #111438faisalMemberthanks,
Actually I dont see !is_admin in functions.php
June 25, 2014 at 7:59 am #111458Brad DaltonParticipantCan't really help and provide an accurate solution unless i see all the code.
June 25, 2014 at 8:06 am #111461faisalMemberthanks,
is there any way I should share the file, so you can see
June 25, 2014 at 10:04 pm #111578Brad DaltonParticipantYes. Please paste the code into a Github Gist and link to it from here. Thanks.
June 26, 2014 at 11:42 pm #111703faisalMemberThanks, I have pasted functions code at following link
June 26, 2014 at 11:44 pm #111704faisalMemberThanks, I have pasted functions code at following link
rgds
Faisal
June 26, 2014 at 11:46 pm #111705faisalMemberI 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' ),
) ); -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.