- This topic has 4 replies, 2 voices, and was last updated 8 years, 3 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
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.
We're using Outreach Pro/Genesis and will soon upload to the Web. I've been asked to insert a basic "Top of page" link in the blank area under the Search widget. I found two php files that seem to handle the search, but both a marked "Don't you dare touch this" or words to that effect.
With a bit of guidance I can puzzle out the details. Here's what the existing html in the widget looks like after WP has assembled everything:
<div class="footer-widgets-4 widget-area"> <section id="search-3" class="widget widget_search"> <div class="widget-wrap"> <h4 class="widget-title widgettitle">Search this site …</h4> <form method="get" class="search-form" action="http://127.0.0.1/wp/" role="search"><input type="search" name="s" placeholder="Search this website…" /><input type="submit" value="Search" /></form> </div> </section> </div>
You should do all your edits in the child theme Outreach Pro files. What file is this code in?
The code is what's in the browser if I do Ctrl-U. I've tried Notepad++ searches looking for various unique text strings* in any php or js file inside the WordPress directory.
( *footer-widgets-4, widget-area, widget-wrap, "Search this site", etc )
When I get in front of the PC on Saturday I'll try again to find something in the Outreach Pro files. But I'm surprised nothing has come up before, since that's a sub-directory of the main directory I searched. And I had the box ticked to drill down. Thanks, Savvyjackie.
Well I searched the entire Outreach Pro child theme folder for the text string "search" and no results except inside style.css. I'm stumped. Seems like such a simple idea to just insert a back to top link. PS Searched for any files with string "search" in their name. Zip.
OK I just decided to use a plugin. Thanks anyway for offering to help!
© 2023 WPEngine, Inc.