WordPress.org

Ready to get started?Download WordPress

Forums

Widen the content box (8 posts)

  1. jefonte
    Member
    Posted 3 years ago #

    Hello, I want to widen and center the post box of my blog. (I mean the white part of the page where the post is in)See it here: http://contradiccionesdelabiblia.com/%C2%BFcontesta-dios-las-oraciones/

    How can I do it.
    THANKS in advance

  2. jefonte
    Member
    Posted 3 years ago #

    The width of the box should be the same width as the page width
    Like this one http://contradiccionesdelabiblia.com/sample-page/

    THANKS in advance

  3. jumbolove
    Member
    Posted 3 years ago #

    If you are looking for a solution for the whole website, you can create override a function with one of your own.

    In functions.php paste in:

    <?php if ( ! isset( $content_width ) )
    	$content_width = 1024;
    ?>

    I set it to 1024, you can change it to whatever width you'd like.

    Let me know if this helps.

  4. jefonte
    Member
    Posted 3 years ago #

    THANK YOU jumbolove
    I pasted that in funtion.php. but as soon as I clicked the "update file" I got the following message:

    Parse error: syntax error, unexpected '<' in /home/f916236/public_html/contradiccionesdelabiblia.com/wp-content/themes/distinction/functions.php on line 539

    What´s does it mean??

    THANKS again

  5. jefonte
    Member
    Posted 3 years ago #

    After I pasted that code seems that I can´t do any with my blog now.

    Every time I want to do something that message show up!! Even when I deleted it from funtion.php

    What´s can I do now?
    I can´t even access to my blog. Wooow I don´t know what going on here.

  6. jumbolove
    Member
    Posted 3 years ago #

    It means there is an error in your code somewhere. If you didn't get that error before, make sure that in this segment you balance all the braces and end the argument with a semi-colon.

    If it still doesn't work, you can paste in the code of the whole file using .

  7. jefonte
    Member
    Posted 3 years ago #

    THANK YOU jumbolove again I appreciate your valuable help

    I have couple question now:

    1- Should I place the code in some particular place of the funtion.php box?

    2- Where should I put the braces?

    here? <?php if ( ! isset( $content_width ) )
    $content_width = 1024;
    ?> or here? both? or none of them?

    THANK YOU

  8. jefonte
    Member
    Posted 3 years ago #

    I found this code portion and I changed the value from 383 to 600 but when I go to view my site I don´t see any change. What´s could be happening??

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

Topic Closed

This topic has been closed to new replies.

About this Topic