Community Forums › Forums › Archived Forums › Design Tips and Tricks › Horizontal Scrolling Announcement under Header
- This topic has 14 replies, 2 voices, and was last updated 9 years, 8 months ago by Genesis Developer.
-
AuthorPosts
-
August 15, 2014 at 8:00 am #119003kradkeMember
Can someone please tell me how I can get the plugin "Horizontal Scrolling Announcement" to run across the page under the header image and above the navigation on this website? http://www.krcreativetesting.com
I may need a widget area under there somehow so I can place the short code.
Any help would be greatly appreciated. thanks
http://www.krcreativetesting.comAugust 15, 2014 at 8:18 am #119004Genesis DeveloperMemberAugust 15, 2014 at 8:25 am #119005Genesis DeveloperMemberYou need to reposition the Header nav bar. Add this code in your functions.php file
remove_action( 'genesis_after_header', 'genesis_do_nav' ); add_action( 'genesis_after_header', 'genesis_do_nav' , 45);
August 15, 2014 at 8:35 am #119007Genesis DeveloperMemberPlease see the new link
August 15, 2014 at 1:37 pm #119042kradkeMemberI added this into functions.php
//* Register widget areas
genesis_register_sidebar( array(
'id' => 'after-header',
'name' => __( 'After Header', 'genesis' ),
'description' => __( 'This section will appear at bottom of the navigation bar.', 'genesis' ),
) );add_action('genesis_after_header', 'after_header_widget', 35);
function after_header_widget(){
genesis_widget_area( 'after-header', array(
'before' => '<div class="after-header widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
}
- See more at: http://pwdtechnology.com/add-horizontal-scrolling-announcement-header-after-header-widget/#sthash.b1248LXO.dpufThen when I update I get the following error:
Parse error: syntax error, unexpected 'more' (T_STRING) in /home/krcreat1/public_html/krcreativetesting/wp-content/themes/going-green-pro/functions.php on line 134
So I went back and deleted what I had added and updated and it gave the same error???
August 15, 2014 at 1:42 pm #119046Genesis DeveloperMemberPlease use Theme Editor and add the following code
//* Register widget areas genesis_register_sidebar( array( 'id' => 'after-header', 'name' => __( 'After Header', 'genesis' ), 'description' => __( 'This section will appear at bottom of the navigation bar.', 'genesis' ), ) ); add_action('genesis_after_header', 'after_header_widget', 35); function after_header_widget(){ genesis_widget_area( 'after-header', array( 'before' => '<div class="after-header widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); }
August 15, 2014 at 1:59 pm #119066Genesis DeveloperMemberSo I went back and deleted what I had added and updated and it gave the same error???
Download the functions.php file and upload the full code at pastebin.com and share the pastebin link here. I'll look the code
August 15, 2014 at 2:22 pm #119080August 15, 2014 at 2:28 pm #119083Genesis DeveloperMemberSee the new version http://pastebin.com/FrdpvXfF .You'll copy the code from RAW Paste Data area and update the full code of functions.php file and upload the file via FTP or file manger
August 15, 2014 at 2:28 pm #119084kradkeMemberHere it is with the code that you told me to add:
It looks like line 134 is }
August 15, 2014 at 2:36 pm #119089Genesis DeveloperMemberYou're doing something wrong. last two lines are missing in your version. Please check my version. There are have no any text like 'more'
August 15, 2014 at 2:37 pm #119092kradkeMemberSo I copied that and put in new functions.php file. I will upload it to my website via ftp. Is that correct?
August 15, 2014 at 2:47 pm #119099Genesis DeveloperMemberthen remove the old functions.php file from your child theme folder. New file name would be functions.php
August 15, 2014 at 2:58 pm #119105kradkeMemberPhew! I got it back now. I think this will work for the slider. I see the widget area now also. I will mark it resolved once I get that rolling. Thank you so much for your help.
August 15, 2014 at 3:06 pm #119108Genesis DeveloperMemberYes. you can use Genesis Responsive Slider there. Also you can add unlimited widget at that area.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.