Community Forums › Forums › Archived Forums › Design Tips and Tricks › Brian Gardner's Custom Theme Edits on Minimalist-Pro Template
Tagged: Brian Gardner, minimalist, scrolling logo, Search Form
- This topic has 1 reply, 1 voice, and was last updated 7 years, 10 months ago by Vasilis.
-
AuthorPosts
-
March 1, 2017 at 11:40 pm #202308VasilisMember
Dear awesome people
I recently installed Minimalist-Pro on my website (after using Genesis Simple a couple of years) and having a couple of questions.
1. Trying to customize a menu search bar following Brian Gardner's website search bar appearance
Followed the StudioPress guide to add the search bar on my navigation bar like this:
//* Add Navigation Menu Extras add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 ); function theme_menu_extras( $menu, $args ) { if ( 'primary' !== $args->theme_location ) return $menu; ob_start(); get_search_form(); $search = ob_get_clean(); $menu .= '<li class="right search">' . $search . '</li>'; return $menu; }
And after copied Brian Gardner's custom CSS from the "Search Form" area .CSS file - using this:
/* Search Form ---------------------------------------------------------------------------------------------------- */ .site-header .search { float: right; } .search-form:before { color: #000; content: "\f4a5"; font-family: 'Cormorant Garamond', serif; font-size: 16px; right: 15px; position: absolute; top: 7px; } .entry-content .search-form { margin-bottom: 40px; width: 50%; } .site-header .search-form { margin-top: 4px; } .site-header .search-form input[type="search"] { background-color: transparent; border: none; border-radius: 0; font-size: 12px; font-weight: 400; letter-spacing: 1px; padding: 5px 0 5px 10px; padding-right: 35px; text-transform: uppercase; transition: width .15s ease-in-out; width: 100px; } .site-header .search-form input:focus[type="search"] { background-color: #f5f5f5; transition: width .15s ease-in-out; width: 200px; } .widget_search input[type="submit"] { border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; padding: 0; position: absolute; width: 1px; }
Is there something I'm doing wrong and it won't appear like it is supposed to?
2. I would like to add the left from navigation menu scrolling down logo graphic on my website.
Is there a specific suggestion for this (creating a new widget area?) or should I just copy the CSS and it will work?
Your response and time is much appreciated
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
March 1, 2017 at 11:43 pm #202311VasilisMemberDear awesome people
I recently installed Minimalist-Pro on my website (after using Genesis Simple a couple of years) and having a couple of questions.
1. Trying to customize a menu search bar following Brian Gardner's website search bar appearance
Followed the StudioPress guide to add the search bar on my navigation bar like this:
//* Add Navigation Menu Extras add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 ); function theme_menu_extras( $menu, $args ) { if ( 'primary' !== $args->theme_location ) return $menu; ob_start(); get_search_form(); $search = ob_get_clean(); $menu .= '<li class="right search">' . $search . '</li>'; return $menu; }
And after copied Brian Gardner's custom CSS from the "Search Form" area .CSS file - using this:
/* Search Form ---------------------------------------------------------------------------------------------------- */ .site-header .search { float: right; } .search-form:before { color: #000; content: "\f4a5"; font-family: 'Cormorant Garamond', serif; font-size: 16px; right: 15px; position: absolute; top: 7px; } .entry-content .search-form { margin-bottom: 40px; width: 50%; } .site-header .search-form { margin-top: 4px; } .site-header .search-form input[type="search"] { background-color: transparent; border: none; border-radius: 0; font-size: 12px; font-weight: 400; letter-spacing: 1px; padding: 5px 0 5px 10px; padding-right: 35px; text-transform: uppercase; transition: width .15s ease-in-out; width: 100px; } .site-header .search-form input:focus[type="search"] { background-color: #f5f5f5; transition: width .15s ease-in-out; width: 200px; } .widget_search input[type="submit"] { border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; padding: 0; position: absolute; width: 1px; }
Is there something I'm doing wrong and it won't appear like it is supposed to?
2. I would like to add the left from navigation menu scrolling down logo graphic on my website.
Is there a specific suggestion for this (creating a new widget area?) or should I just copy the CSS and it will work?
Your response and time is much appreciated
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.