Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • It may be helpful to note that this is what I’m hoping for in the end. I imagine the nav links on top to be image links, using the text widget.

    https://thehomeground.com/blog/https://thehomeground.com/blog/wp-content/uploads/2010/10/Screen-shot-2010-10-17-at-11.22.13-PM.png

    Thanks again.

    Hi Alchymyth,

    I just titled the three widgets (they’re just text), so that you can see them on top of the header.

    header.php : https://wordpress.pastebin.com/8gmknBby

    sidebar-top.php : https://wordpress.pastebin.com/XDhGa6u6

    functions.php : pastebin isn’t saving a page with my functions code. I’ve tried doing it in a different browser, in a new window, everything I can think of. Here is the widget code that I pasted into the functions.php file with context before and after it:

    // Area 5, located in the footer. Empty by default.
    	register_sidebar( array(
    		'name' => __( 'Third Footer Widget Area', 'twentyten' ),
    		'id' => 'third-footer-widget-area',
    		'description' => __( 'The third footer widget area', 'twentyten' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    		// Area 6, located in the header. Empty by default.
    	register_sidebar( array(
    		'name' => __( 'Left Top Widget Area', 'twentyten' ),
    		'id' => 'left-top-widget-area',
    		'description' => __( 'The left top widget area', 'twentyten' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	// Area 7, located in the header. Empty by default.
    	register_sidebar( array(
    		'name' => __( 'Center Top Widget Area', 'twentyten' ),
    		'id' => 'center-top-widget-area',
    		'description' => __( 'The center top widget area', 'twentyten' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	// Area 8, located in the header. Empty by default.
    	register_sidebar( array(
    		'name' => __( 'Right Top Widget Area', 'twentyten' ),
    		'id' => 'right-top-widget-area',
    		'description' => __( 'The right top widget area', 'twentyten' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    }
    /** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
    add_action( 'widgets_init', 'twentyten_widgets_init' );
    
    /**
     * Removes the default styles that are packaged with the Recent Comments widget.
     *
     * To override this in a child theme, remove the filter and optionally add your own
     * function tied to the widgets_init action hook.

    Thanks!

    Edit to my last post:

    I moved the widget area to be on top of the header. Now, if possible, it needs to replace the tagline area. I want it to be on the same line as the blog title. Is there a way to move it over there?

    Second, rather than being spread out across the top, the three widget areas are stacked on top of each other. How can I fix this? My end goal is to have a set of image links (a href with img src html using the text widget, similar to the widgets i have on the sidebar already) along the top of the header.

    Any help would be greatly appreciated ??
    Brittany

    I was looking to do exactly what @alchymyth and @adeptris have described here and, after some trial and error (this was my first php editing) managed to create the top widget area. So, thanks to both of you!

    But, I would really like it to be on top of my header. I’ve looked around in the code but don’t understand enough of the language to find the spot or even know what to tell it if I did find the place to edit. Can anyone help me on this?

    Website : https://thehomeground.com/blog

    Thanks so much!
    Brittany

Viewing 4 replies - 1 through 4 (of 4 total)