Support » Themes and Templates » Change width of visual editor in fullscreen mode

  • Hi,

    I have made edits to my theme which have made the content area wider, I am trying to get this reflected in the editor so it remains as WYSIWYG. However when I switch into fullscreen mode it is set at the original width.

    It seems that it is calling this:

    $dfw_width = get_user_setting( ‘dfw_width’, $width );
    <div id=”wp-fullscreen-wrap” style=”width:<?php echo $dfw_width; ?>px;”>

    Which outputs

    <div id=”wp-fullscreen-wrap” style=”width: 594px;”>

    Where is the setting dfw_width stored as I would like to change it.

    Many thanks

    Paul

Viewing 4 replies - 1 through 4 (of 4 total)
  • Where is the setting dfw_width stored

    In the wp-options table?

    been trying to change the width with WP 3.2.1

    It’s a bit tricky, i think, but if you need width up to 800px, you can change it with functions.php of the theme. Just add this code somethere:

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

    but if you need width to be more or equal then 800, you have to change /wp-admin/includes/post.php . Search there for ‘800’ (you should find 2 instances), and change this value to something bigger, like 1000 or more and then add the strings above to Functions.php of your theme.

    You can set this in the themes function.php

    set_user_setting( 'dfw_width', 1000 );

    Try this.

    this value can be placed in percentage?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change width of visual editor in fullscreen mode’ is closed to new replies.