How to change ‘content_width’ in child-theme via functions.php
-
I think I found the official filter function that should be the solution on this page. But it doesn’t work!
function childtheme_content_width( $content_width ) { $content_width = 960; return $content_width; } add_filter( 'twentyseventeen_content_width', 'childtheme_content_width' );
Is there someone who has already had this problem and may have found a solution?
(A change of the theme is not the solution.)Why do I need this?
For a newsletter via plugin I need an image width of 580px. The maximum image width is set to 525px by content_width in the functions.php. Therefore, max. 525px large images are created in the media library.Thank you for your help!
Michael
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to change ‘content_width’ in child-theme via functions.php’ is closed to new replies.