• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Brian Gardner's Custom Theme Edits on Minimalist-Pro Template

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Brian Gardner's Custom Theme Edits on Minimalist-Pro Template

This topic is: resolved

Tagged: Brian Gardner, minimalist, scrolling logo, Search Form

  • This topic has 1 reply, 1 voice, and was last updated 6 years ago by Vasilis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 1, 2017 at 11:40 pm #202308
    Vasilis
    Member

    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

    http://thevasilis.com
    March 1, 2017 at 11:43 pm #202311
    Vasilis
    Member

    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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble