Forum Replies Created

Viewing 8 replies - 106 through 113 (of 113 total)
  • Thread Starter Becki Beckmann

    (@becki)

    so … just did what you told me. enabled the twenty eleven theme for the network. then enabled it on one mutlisite domain and the problem is still there!!

    if i click on the toggle thingy in the dashboard upper right corner ‘screen option’ or ‘help’ or on ‘howdy, username’ nothing is happening! the menus don’t collapse!

    so it is the same thing with theme twenty eleven.

    also i’m not sure how you could say that i clearly have made a few changes??

    i haven’t! just the standard twenty ten theme with ONE function in the functions.php file to remove this ‘quickpres’ widget as the problems go away after i did that

    hope this helps you guys to re-produce the issue

    thanks & fun
    becki

    Thread Starter Becki Beckmann

    (@becki)

    well … actually i didn’t do any changes at all! not one single bit!

    the sites use the default twenty ten theme … but i will give twenty eleven a try and will report back πŸ˜‰

    thanks

    Thread Starter Becki Beckmann

    (@becki)

    hi andrea,

    thanks for your reply …

    don’t think that a plugin is flushing my rewrite rules in the htaccess file, because then all other sites would be affected by this, which actually isn’t the case

    but i think a WP upgrade somehow might flush the settings for that multi site … or a plugin could cause that … in the database table ‘options’

    sadly i don’t have much time to dig deeper into that. will keep on updating the permalink structure after every upgrade ..

    but thought perhaps you guys would know about a fix for this issue

    anyway … thanks a lot
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hey duck__boy πŸ˜‰

    you’re the man! custom widgets saved my day πŸ˜‰

    did create my custom widget class extending from WP_Widget and saved the code in the themes function.php file

    then registered my custom widget ->
    register_widget(‘myCustomWidget’);

    and voila … in the admin panel the widget shows up and i can drag & drop it into the sidebar …

    no more modifying of WP core files … problem solved πŸ˜‰

    thanks again for pointing me towards the right direction!

    greetz
    becki

    Thread Starter Becki Beckmann

    (@becki)

    yep …thanks a lot for your idea πŸ˜‰

    the register_sidebar function would take care of the ->

    before_widget & after_widget
    before_title & after_title

    great!

    but this would still lack 2 things I’m trying to achieve …

    first … completely remove the $title!
    and add a CSS class ‘vlist’ to the UL container!

    how can this be done without modifying the core file??

    any more input, ideas & hints are more than welcome πŸ˜‰

    greetings
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hello duck__boy,

    thanks for your reply … i will copy the original and modified code below so you can have a look what i’m trying to achive ->

    original code first ->

    function widget( $args, $instance ) {
    		extract( $args );
    
    		$title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base);
    		$sortby = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby'];
    		$exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude'];
    
    		if ( $sortby == 'menu_order' )
    			$sortby = 'menu_order, post_title';
    
    		$out = wp_list_pages( apply_filters('widget_pages_args', array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) ) );
    
    		if ( !empty( $out ) ) {
    			echo $before_widget;
    			if ( $title)
    				echo $before_title . $title . $after_title;
    		?>
    		<ul>
    			<?php echo $out; ?>
    		</ul>
    		<?php
    			echo $after_widget;
    		}
    	}

    modified function follows ->

    function widget( $args, $instance ) {
    		extract( $args );
    
    		$title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base);
    		$sortby = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby'];
    		$exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude'];
    
    		if ( $sortby == 'menu_order' )
    			$sortby = 'menu_order, post_title';
    
    		$out = wp_list_pages( apply_filters('widget_pages_args', array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) ) );
    
    		if ( !empty( $out ) ) {
    			// echo $before_widget; core hack
    			if ( $title)
    				// echo $before_title . $title . $after_title; core hack
    		?>
    		<ul class="vlist">
    			<?php echo $out; ?>
    		</ul>
    		<?php
    			// echo $after_widget; core hack
    		}
    	}

    so … what am i modifying?

    first i need to remove the $before & $after_widget
    then i need to remove the $title from the widget …
    last … i need to add a CSS class named ‘vlist’ to the
    ‘ul’ container
    this is a request from my customer … he doesn’t want to have the widget title ‘pages’

    what’s the best way to achieve this without modifying the core files?

    thanks & fun
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hello 2ells,

    thanks for your reply and pointing me in the right direction.
    did also browse through the forum here and someone else was asking a similar question ->

    WordPress 3.0.5 changelog

    thanks & all the best

    greetings
    becki

    Thread Starter Becki Beckmann

    (@becki)

    hello 2ells,

    thanks a lot for your reply and pointing me to the right direction.
    just had a look through some other posts in this forum and someone asked a similar question ->

    so … my question has been answered πŸ˜‰ thanks for your help!

    greetings
    becki

Viewing 8 replies - 106 through 113 (of 113 total)