• 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

StudioPress sold me a theme that advertises a search function it doesn't have

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 › General Discussion › StudioPress sold me a theme that advertises a search function it doesn't have

This topic is: not resolved

Tagged: Search Form

  • This topic has 5 replies, 4 voices, and was last updated 4 years, 5 months ago by RevKenHoward.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 27, 2018 at 5:31 am #222738
    RevKenHoward
    Member

    StudioPress sold me a theme (Corporate Pro) that advertises a search function (https://my.studiopress.com/themes/corporate/) but which, according to SEOThemes, they have purposely removed. This is a deceptive practice and FALSE ADVERTISING. I think StudioPress need to refund my money.

    This is the second theme they have sold me without a search function (what good is a site without a search function, anyway?).

    https://my.studiopress.com/themes/corporate/
    August 27, 2018 at 7:28 am #222741
    Brad Dalton
    Participant

    Try this code to add it back https://my.studiopress.com/snippets/nav-extras/


    Get Help – Book Consultation.

    August 27, 2018 at 8:18 am #222743
    RevKenHoward
    Member

    I tried that and it gave me a whole bunch of invalid code errors.

    Also, the link that is supposed to provide more information (at the bottom of that page) is broken (the one that recommends FireBug).

    August 28, 2018 at 4:36 am #222759
    Victor Font
    Moderator

    WordPress has its own search widget that you can add to any widget area.

    The code that Brad referred you to still works. I use it on many themes without issue. Are you sure your PHP version is up-to-date?

    Mozilla discontinued Firebug last year. It is no longer available. All modern browsers now have built-in inspection tools.

    As a community forum of volunteers, we have no affiliation with Studio Press or their parent organization WP Engine. We're end users just like you just trying to help one another. I'm sorry you're disappointed with the community marketplace themes developed by 3rd parties, but we can't help you with refunds or the way 3rd party themes are promoted. You'll have to contact Studio Press directly to resolve your issue.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 28, 2018 at 9:39 pm #222784
    seothemes
    Member

    Just to clarify, the search toggle icon was using the deprecated Nav Extras feature which has now been removed from new installs. It was still appearing in old installs up until recently, that is why it was present in the theme screenshots, but is not in the theme demo.

    This functionality can be added back to the theme by using a modified version of the code snippet from the page Brad linked to, see below:

    add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 );
    /**
     * Filter menu items, appending a search form.
     *
     * @param string   $menu HTML string of list items.
     * @param stdClass $args Menu arguments.
     *
     * @return string Amended HTML string of list items.
     */
    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;
    }

    Also, the link at the bottom of that page is working for me https://my.studiopress.com/documentation/tutorials/general/how-to-customize-and-troubleshoot-css/ - However you need to be logged in to my.studiopress.com to view it.

    August 31, 2018 at 7:11 am #222844
    RevKenHoward
    Member

    So I am also trying to insert SEARCH in the menu line on an Altitude Pro site.

    I have tried adding the snippet code without success.

    Is there something in the code I am supposed to modify?

    Am I putting it the right place? Add CSS? Header?

    I'm new at this. Perhaps someone could provide me with the exact code and tell me where to insert it and how?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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