Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to change ‘content_width’ in child-theme (revisited)

$
0
0

Replies: 0

In a thread entitled: “How to change ‘content_width’ in child-theme via functions.php”

The solution to changing the content_width in a child theme’s functions.php file is given as this:
add_action( ‘after_setup_theme’, ‘prima_twentyseventeen_setup’,11 );
function prima_twentyseventeen_setup() {
$GLOBALS[‘content_width’] = 640;
}

I’ve add this to my child theme’s functions.php but it doesn’t work.

If I make this change in the twentyseventeen theme’s functions.php:
$GLOBALS[‘content_width’] = 640;

It works and does what I’m expecting.

I’m not sure what I’m doing wrong, or how to debug this?

Thanks

William

  • This topic was modified 30 minutes ago by bst7.

Viewing all articles
Browse latest Browse all 59525

Trending Articles