• hello dear wordpress-experts

    have installed wp version 4.1 with theme 2014
    i am using wp for some months now but i am pretty (fairly) new to all.

    i am trying to customize the theme;

    my question: how to arrange the postings in a broader / wider column.
    the text-width should be wider. It should fill out more of the center of the theme

    see the site: http://www.php-nuke.de

    hope i was able to describe correctly so you can understand what is aimed.

    is this possible!? love to hear from you

    many thanks for any and all help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there.

    The code that is controling the content width of your theme is:

    .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content {
    margin: 0 auto;
    max-width: 474px;
    }

    You can see it has been set to a max-width of 474px, and the margin: 0 auto is what is centering it. You could simply override the max-width value to achieve the look you’re after.

    Probably best to do so in a child theme (http://codex.wordpress.org/Child_Themes).

    Thread Starter say_hello

    (@say_hello)

    hello good day

    mamy thanks tor the hints…. creating a child theme –
    the link you showed me goes to a child theme for the 2015 –

    here all the necessary things are described. new techniques and best practices are described. i can use this written code – see below – in the theme 2015 and other themes accordingly

    many many thanks”!!! i will use the code to create a child theme.

    /*
    
     Theme Name:   Twenty Fifteen Child
     Theme URI:    http://example.com/twenty-fifteen-child/
     Description:  Twenty Fifteen Child Theme
     Author:       John Doe
     Author URI:   http://example.com
     Template:     twentyfifteen
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:  http://www.gnu.org/licenses/gpl-2.0.html
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  twenty-fifteen-child
    */

    one question regarding the changes you mentioned. do i add this code to the css ? file

    The code that is controling the content width of my theme is:

    .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content {
    margin: 0 auto;
    max-width: 474px;
    }

    or to the index php ?

    can you tell me where to add this piece of code!?
    many thanks for any and all help

    That is correct, the code I provided is CSS and can go in your child-themes style.css file. Remember to replace the references to twenty-fifteen to fourteen since you’re using that theme. Also, follow the instructions on that page to create the functions.php child-theme file to enqueue the files properly.

    If all goes well, you should see the new child-theme in the admin.

    This way you can make as many or as little changes as you want via the child-theme, without overriding anything from the default.

    Thread Starter say_hello

    (@say_hello)

    hello dear mattwebdev

    many many thanks for the hints. i am very glad.

    greetings
    sayhello

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to arrange the text width in the 2014 theme?’ is closed to new replies.