Forums

Change width of visual editor in fullscreen mode (5 posts)

  1. oceanexplorer
    Member
    Posted 10 months ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Where is the setting dfw_width stored

    In the wp-options table?

  3. enkosynthesys
    Member
    Posted 9 months ago #

    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.

  4. pbearne
    Member
    Posted 6 months ago #

    You can set this in the themes function.php

    set_user_setting( 'dfw_width', 1000 );

    Try this.

  5. biffly
    Member
    Posted 4 months ago #

    this value can be placed in percentage?

Reply

You must log in to post.

About this Topic