Community Forums › Forums › Archived Forums › Design Tips and Tricks › Moving the right header widget by a few px and translating search button
Tagged: move widget area
- This topic has 5 replies, 2 voices, and was last updated 13 years, 3 months ago by
Stewart.
-
AuthorPosts
-
August 7, 2013 at 10:12 am #54585
jazzybazz
MemberSee this page: http://goo.gl/qvgHmy
1. As you can see on the header, the search feature is too close to the right edge of the header. I'd like to move it to the left a little bit. What's the easiest way to achieve this?
2. How do I change the text on the search button? I want to change the "GO" button to another text. Is it possible?
Thank you very much.
http://goo.gl/qvgHmyAugust 7, 2013 at 10:51 am #54593Stewart
MemberHi,
Ok for your first question, you need to open your child themes style.css file and look on around line 1459 for the following:
#header .searchform { float: right; padding: 50px 0 0; }and just change padding on the right example: padding 50px 20px 0;
And for your second question paste the following into your child themes functions.php file.
<?php //* Do NOT include the opening php tag //* Customize search form input button text add_filter( 'genesis_search_button_text', 'custom_search_button_text' ); function custom_search_button_text( $text ) { return esc_attr( 'Go' ); }And jsut change the text form Go to whatever you like.
Don't forget to backup all files just in case something goes wrong.
Hope this helps
Stewart
WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
Follow me on TwitterAugust 7, 2013 at 11:23 am #54610jazzybazz
MemberStewart, thank you very much for your answer.
The positioning issue was fixed thanks to your help.
However, for the functions.php fix, when I copy-paste the code in the file, the website crashes and stop loading. I tried adding the closing > but still the same issue.
Thank you.
August 7, 2013 at 11:29 am #54616Stewart
MemberHi, did you add the "<?php" ? if so remove it.
If still having an issue let me know what version genesis you are running and when i get home Ill take a look at the enterprise theme files and see if I can find out what's wrong.
Stewart
WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
Follow me on TwitterAugust 7, 2013 at 11:32 am #54619jazzybazz
MemberWorks!! thank you so much 🙂 one last question if you don't mind. I want to resize the search text box. I want to make it smaller.
August 7, 2013 at 11:38 am #54624Stewart
MemberGlad it worked for you, To change the search box size just open your style.css file again on line 1456 onwards is all the styling for the search form.
If you want to change the width of the text input box for example:
#header .s { margin: 5px 0 0; width: 250px; }Just change the width 🙂 But basically there are 4 css styles there that you can play around with to achieve your desired look.
Stewart
WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
Follow me on Twitter -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.