Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

olddocks on "$content_width ??"

$
0
0

What exactly does this do? it seems all themes require to set this variable like this

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

I am creating a theme, where in the options panel, people can disable sidebar. If the sidebar is off, the theme shows posts and pages full width (1000px) else 700px with sidebar.

How do i set $content_width accordingly to this?


Viewing all articles
Browse latest Browse all 8245

Trending Articles