Forums

[Plugin: Front-end Editor] Not showing WYSIWYG (no CSS) (5 posts)

  1. physalis
    Member
    Posted 2 years ago #

    Hi there,

    first of all, a great plugin, I wonder why WordPress didn't add this functionality long ago into their software...
    However, when simply downloading, uploading and activating your plugin, be it the 1.3.3 oder the dev version, the plugin works as regards to clickable fields everywhere, but it simply fails to load in the necessary css file(s?), so it ends up being 143px wide and has no WYSIWYG editor, only a bunch of bullets on top of the narrow window. When adding the css of the editor and jquery.css I can have a normal sized window and the editor window. However, didn't anybody else encounter this problem?
    Furthermore, on some pages including both page content and a list of posts with excerpts I cannot make the whole plugin work. Furthermore, images aren't shown and editable, is that by design? I'd fear I lose them when editing a post/page without seeing it....

    Thanks for the plugin nevertheless - truly is great!

    http://wordpress.org/extend/plugins/front-end-editor/

  2. scribu
    Member
    Posted 2 years ago #

    Make sure you have this line in your theme's header.php file:

    <?php wp_head(); ?>

    Furthermore, on some pages including both page content and a list of posts with excerpts I cannot make the whole plugin work.

    No ideea why that would happen. Is the list of posts a custom loop?

    Furthermore, images aren't shown and editable, is that by design? I'd fear I lose them when editing a post/page without seeing it....

    I'm not sure what you mean... images inside the post content, or?

  3. physalis
    Member
    Posted 2 years ago #

    Well, the wp_head is already included.. so this cannot trick wordpress to forget the css...

    Yes, it is a custom loop, looking like this:

    <?php
    // page id 18 will get category ID 6,7,8 posts, page 30 will... etc.
    if (is_page('18') ) {
    $cat = array(6,7,8);
    } elseif ( is_page('30') ) {
    $cat = 9;
    } elseif ( is_page('22') ) {
    $cat = 10;
    } else {
    $cat = '';
    }
    
    $showposts = 2; // -1 shows all posts
    $do_not_show_stickies = 1; // 0 to show stickies
    $args=array(
       'category__in' => $cat,
       'showposts' => $showposts,
       'caller_get_posts' => $do_not_show_stickies
       );
    $my_query = new WP_Query($args); 
    
    ?>
    	<?php if( $my_query->have_posts() ) : ?>
    
    		<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    			<?php
    			//necessary to show the tags
    			global $wp_query;
    			$wp_query->in_the_loop = true;
    			?>

    ...followed by the specific post appearance with usual parameters (the_permalink, the_time etc.).

    My last point was obviously bullshit. I checked again and found out that it integrates images nicely and as it should. Only custom classes from my own css are ignored (so that I see no bg pics etc.).

    Thanks for looking into that ;) .

  4. scribu
    Member
    Posted 2 years ago #

    Well, the wp_head is already included.. so this cannot trick wordpress to forget the css...

    I have no ideea why it isn't included then.

    For the loop thing, there's one more thing you could try: go to front-end-editor/fields.php and comment out these lines:

    if ( ! in_the_loop() )
    		return $content;

    although I don't think it will help.

    Only custom classes from my own css are ignored (so that I see no bg pics etc.).

    You can fix that. Read the announcement for version 1.3.

  5. physalis
    Member
    Posted 2 years ago #

    Well, for the wp_head thing I don't know... it is definitely in the header.php. Not too bad since I copied the css into my main file.

    Erm, the loop thing... commenting this out does in deed help. I can finally edit the page content and save it accordingly.

    Your trick for 1.3 helped as well.

    Thanks a bunch!!!

Topic Closed

This topic has been closed to new replies.

About this Topic