Forum Replies Created

Viewing 11 replies - 151 through 161 (of 161 total)
  • If you utilize the new menu management (WP v3), you can alter the text manually.

    • Go to your dashboard
    • Go to Appearance -> Menus
    • Create a menu (call it Menu, if you want)
    • Under Theme Locations attach your new menu to under Primary Navigation
    • Add your About page
    • Expand the About menu item and change the Navigation Label to read “About”
    • Save the menu

    You’ll need to rebuild any other menu items you have, but once you do it the first time you’ll have complete control over the menu and naming each menu item.

    Throw your header up on Pastebin, and link it.

    Are you trying to make the sidebar content flush with the pink?

    If so try making these changes in your stylesheet:

    #container {
    float: left;
    margin: 0px -235px 0px 0px;
    width: 100%;
    }
    
    #primary, #secondary {
    float: right;
    margin: -30px 0px 0px 0px;
    overflow: hidden;
    width: 235px;
    }

    This should work:

    <?php if ( is_home()) { ?>
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Post Image Widget") ) : ?><?php endif; ?>
    <?php } else { ?>
        <!-- Not The Homepage -->
    <?php } ?>

    You’ll have to style it accordingly. I suggest something like:

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Post Image Widget',
    'before_widget' => '<div id="home-widget">',
    'after_widget' => '</div>',
    'before_title' => '',
    'after_title' => '',
    ));
    ?>

    Then give your stylesheet #home-widget with the appropriate styles depending on your theme.

    This is the default <title> code for Twenty Ten:

    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    
    	?></title>

    Try adding the following to your stylesheet:

    /* LAYOUT: Two columns-reversed
       DESCRIPTION: Two-column fixed layout with one sidebar LEFT of content */
    
    #container {
    float:right;
    width:100%;
    margin:0 0 0 -240px;
    padding:1em 0;
    }
    
    #content {
    margin:0 20px 0 280px;
    }
    
    #primary,#secondary {
    float:left;
    overflow:hidden;
    width:220px;
    }

    Indeed, adding widgets are easy. And I apologize because I misspoke before. You said you only wanted it on the homepage, so you’ll want to utilize the is_home conditional or you can depend on a plugin. If you don’t want to depend on a plugin you can do something like this:

    <?php if ( is_home()) {
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Post Image Widget') ) : ?>
    } else {
      // don't display the widget
    } ?>

    I’ve not actually tired this, so if it doesn’t work give me a shout and I’ll do some testing myself.

    If you don’t have the plugin menu in the dashboard then you don’t have the appropriate permissions which are set by a WordPress administrator.

    If the widget route is the direction you want to go, first you need to register a new widget in your themes function.php:

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Post Image Widget',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '',
    'after_title' => '',
    ));
    ?>

    Then you simply need to add the widget to your themes post.php before The Loop:

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Post Image Widget') ) : ?>

    Post Image Widget being whatever you want to name the widget. You can then add a text widget with with your <img /> tag in the body. If you’re looking for a more user friendly route, add the above code to your theme and install the Image Widget.

    There’s a good “widgetizing” tutorial here.

    I neglected to swap out the new hook. Working now, with the exception of the “Double Click to Edit” popup.

    `scribu,

    I’ll echo everyone else here and say thanks for an awesome plugin. I have several uses for this sort of thing and I was very pleased to see that someone else had already tackled it.

    I am having an issue with the customization pertaining to this thread. Like the others I only want to be able to edit posts from a single category (for my example: Port Guides) with the Front-End Editor.

    The code I’m using is:

    <code>
    add_filter(‘front_ed_allow_post’, ‘restrict_to_category’, 10, 2);
    function restrict_to_category($allow, $post_id) {
    return $allow && in_category(‘Port Guides’, $post_id);
    }
    </code>

    I’m running WordPress v3.0.1, and I’ve tried both v1.9 and the development version (v2.0-alpha6).

    The plugin works almost perfectly out-of-the box. Posts are instantly editable, RTE loads properly, etc. The only exception is the hover graphic indicating it’s an editable region doesn’t display.

    The main issue I’m having is with this particular customization. After adding the above code to my themes functions.php the plugin does not restrict editing to the Port Guides category. All categories remain editable.

    I’ve ran this through Firebug and there isn’t any errors or any sort.

    Any thoughts on where to begin troubleshooting this one? Thanks in advance for your help.

Viewing 11 replies - 151 through 161 (of 161 total)