Support » Theme: Olsen Light » Center Content Area

  • scullyhands

    (@scullyhands)


    Hi,

    After update the latest version, my article doesn’t show at the center are. How could I make them centered again instead of appearing on the left.

    Please help me. Thanks a lot.

    • This topic was modified 6 months ago by  scullyhands.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Fotis

    (@markwaregr)

    Hi there,
    perhaps this can help you out https://wordpress.org/support/topic/center-content-area/

    scullyhands

    (@scullyhands)

    Yes. I read it. I tried but nothing changed. Please help me. Thanks.

    Fotis

    (@markwaregr)

    Hi,
    can you try this

    .single #site-content .col-md-8 {
        margin: auto;
        float:none;
    }
    .single .sidebar{
    display:none;
    }
    

    instead ?

    scullyhands

    (@scullyhands)

    Hi Fotis,

    The code works. But could you tell me how to expand the width of the article? Please see this screenshot.

    Thanks so much.

    Fotis

    (@markwaregr)

    Hi,
    please have a look here https://wordpress.org/support/topic/how-to-make-my-blog-posts-full-width-again-page-attributes/
    Let me know if you need additional help on this.

    scullyhands

    (@scullyhands)

    Hello,

    Thanks so much for your help. I applied your instruction, and it works. But the problem is the content is full width, but the featured image width isn’t changed accordingly. Please see this screenshot.

    As you can see, the image width isn’t equal to the content width. What could I do now?

    Thanks.

    Fotis

    (@markwaregr)

    Hi,
    open single.php and replace

    	<a class="ci-lightbox" href="<?php echo esc_url( olsen_light_get_image_src( get_post_thumbnail_id(), 'large' ) ); ?>">
    										<?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'image' ) ); ?>
    									</a>

    with this

    	<a class="ci-lightbox" href="<?php echo esc_url( olsen_light_get_image_src( get_post_thumbnail_id(), 'large' ) ); ?>">
    										<?php the_post_thumbnail( 'ci_slider', array( 'itemprop' => 'image' ) ); ?>
    									</a>

    Let me know if this works, or if I can help out more.

    scullyhands

    (@scullyhands)

    Yes. Perfect. Thank you so much.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Center Content Area’ is closed to new replies.