Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1165786
    Immortalizer
    Participant

    I’ve got the following code and want this new image to display in the centre of the single post page.
    I’ve tried 3-4 different functions but my coding skills haven’t made it possible.

    add_image_size( ‘blog-top’, 1024, 260, TRUE );
    add_action( ‘genesis_before_entry’, ‘featured_post_image’, 8 );

    function featured_post_image() {
    if ( ! is_singular( ‘post’ ) ) return;
    the_post_thumbnail(‘blog-top’);
    }

    A few solutions i’ve found and tried include:
    // First try

    add_filter( ‘featured_post_image’, ‘be_remove_image_alignment’ );

    function be_remove_image_alignment( $attributes ) {
    $attributes[‘class’] = str_replace( ‘alignleft’, ‘alignnone’, $attributes[‘class’] );
    return $attributes;
    }

    // Second try

    img.centered;
    .aligncenter {
    display: block;
    margin: 0 auto 24px;
    margin: 0 auto 2.4rem;
    }

    #1165946
    Rupok
    Member

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1165966
    Immortalizer
    Participant

    well it’s http://www.thejenkinsfx.com/ but it’s not active.
    I haven’t finished creating it and I’m finding wordpress is just too difficult to work with when there’s actual website makers that are more suited to non-blog pages.
    But I am determined to give it a go still and get something up this week.

    #1166110
    Paul R
    Moderator

    Hi,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

  • <script> jQuery(function($){ $("#no-reply-1165786 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>