Gallery does not reach the full width in Standard Template

Viewing 3 posts - 1 through 3 (of 3 total)
  • #19042
    Geri
    Participant

    Hi!

    I just now discovered, that a Gallery – used with the Standard Template – is not using up the full width of the content what is available. See: http://www.geri.at/wordpress/?p=335
    Using the Template “no sidebars” it fits.

    What can I do, to avoid that?

    thnx!
    Geri

    • This topic was modified 10 years, 2 months ago by Geri.
    #19053
    Daniel Tara
    Keymaster

    This happens because you manually increased the width of the content area from 660px to 768px without changing the value of $content_width.

    Open functions.php and find this line:

    if( ! isset( $content_width ) ) $content_width = 660;

    Change it to:

    if( ! isset( $content_width ) ) $content_width = 768;
    #19056
    Geri
    Participant

    Daniel, thank you very much!

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

You must be logged in to reply to this topic.