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).
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.
hello dear mattwebdev
many many thanks for the hints. i am very glad.
greetings
sayhello