Community Forums › Forums › Archived Forums › General Discussion › StudioPress sold me a theme that advertises a search function it doesn't have
Tagged: Search Form
- This topic has 5 replies, 4 voices, and was last updated 6 years ago by RevKenHoward.
-
AuthorPosts
-
August 27, 2018 at 5:31 am #222738RevKenHowardMember
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 #222741Brad DaltonParticipantTry this code to add it back https://my.studiopress.com/snippets/nav-extras/
August 27, 2018 at 8:18 am #222743RevKenHowardMemberI 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 #222759Victor FontModeratorWordPress 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 #222784seothemesMemberJust 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 #222844RevKenHowardMemberSo 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?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.