Community Forums › Forums › Archived Forums › General Discussion › Streamline Theme – moving simple social icons above header
Tagged: streamline theme
- This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by
ludvig.
-
AuthorPosts
-
September 8, 2013 at 12:05 pm #61370
ludvig
MemberHey,
I am using the plugin "Simple social icons" - currently displayed in my header. I would like to move these icons above the header to the right side of the primary navigation, which is already moved above header.
So far I've managed to register a new widget area, but it is not working properly yet, I am messing up the code somehow and I do not quite know where I am failing. Here's the code:
functions.php
genesis_register_sidebar( array(
'id' => 'before-header',
'name' => __( 'Before Header', 'streamline' ),
'description' => __( 'This is the before header section.', 'streamline' ),
) );(and then later in the bottom of the functions.php)...
/** Widget area navigation menu **/
add_action( 'genesis_before_header', 'before_header' );Home.php
/** Add the before header section */
add_action( 'genesis_before_header', 'streamline_before_header' );
function streamline_before_header() {/** Do nothing on page 2 or greater */
if ( get_query_var( 'paged' ) >= 2 )
return;genesis_widget_area( 'before-header', array(
'before' => '<div class="before-header widget-area">',
) );...
I assume that I am not executing the hook correctly somehow. Can anyone see where I am going wrong?
September 8, 2013 at 1:27 pm #61381ludvig
MemberI got it working by changing it to this in the functions.php file.
/** Register new widget area **/
genesis_register_sidebar( array(
'id' => 'before-header',
'name' => __( 'Before Header', 'streamline' ),
'description' => __( 'This is the before header section.', 'streamline' ),
) );/** add the above widget hook **/
add_action( 'genesis_before_header', 'custom_before_header' );
function custom_before_header() {
genesis_widget_area( 'before-header', array(
'before' => '<div class="before-header widget-area">',
) );
}But it didn't look very nice. I want to get the icons to the navigation area for it to look nice, but I do not understand quite how.
October 17, 2013 at 11:48 pm #67268jennylynn
MemberProbably editing the style sheet but I don't know how to do it, I'm also looking for a solution.
October 18, 2013 at 12:13 am #67269jennylynn
MemberI got it to work using this tutorial
October 23, 2013 at 11:14 am #68464ludvig
MemberI used the same tutorial and it worked with my "simple social icons" plugin, but looked very bad.
So I wanted to use the "Social Media Widget" recommended in the post. But it only shows one icon per row, I can't seem to get them all to align on a single row. It is weird because I have followed the tutorial perfectly.
Did you have the same issue?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.