WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 3.0 behavior for add_submenu_page, unsure (3 posts)

  1. Frumph
    Member
    Posted 3 years ago #

    http://wordpress.pastebin.com/duwgVvs3

    http://frumph.net/stuff/optbehavior.jpg

    Basically what is going on is that as soon as I use the add_submenu_page inside of my theme to add the options for the theme in the header of the browser it ALL plugins and ALL additional (nonWP) stuff become footer << site title for the browser location.

    Very weird.

    sidenote the length changes for amount of space used also and drops the options part to another row as well. (diff subject)

  2. Frumph
    Member
    Posted 3 years ago #

    Actually it wasn't a part of that add_submenu_page code, I found it here:

    // Register Sidebar and Define Widgets
    
    if ( function_exists('register_sidebar') ) {
    	foreach (array(
    				__('Left Sidebar', 'comicpress'),
    				__('Right Sidebar', 'comicpress'),
    				__('Above Header', 'comicpress'),
    				__('Header', 'comicpress'),
    				__('Menubar', 'comicpress'),
    				__('Over Comic', 'comicpress'),
    				__('Left of Comic', 'comicpress'),
    				__('Right of Comic', 'comicpress'),
    				__('Under Comic', 'comicpress'),
    				__('Over Blog', 'comicpress'),
    				__('Blog', 'comicpress'),
    				__('Under Blog', 'comicpress'),
    				__('DaFooter', 'comicpress')
    				) as $title) {
    		register_sidebar(array(
    					'name'=> $title,
    					'id' => sanitize_title($title),
    					'before_widget' => "<div id=\"".'%1$s'."\" class=\"widget ".'%2$s'."\">\r\n<div class=\"widget-head\"></div>\r\n<div class=\"widget-content\">\r\n",
    					'after_widget'  => "</div>\r\n<div class=\"widget-foot\"></div>\r\n</div>\r\n",
    					'before_title'  => "<h2 class=\"widgettitle\">",
    					'after_title'   => "</h2>\r\n"
    					));
    	}
    }

    Basically see 'dafooter' as the last registered ? It's using that in the browsers header as the page title.

  3. Frumph
    Member
    Posted 3 years ago #

    Meh okay apparently the system doesn't like me doing this, so i'm reverting to the HUGE SET OF LINES for the register_sidebar

    // resolved

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.