Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to find a bit of html code in wordpress

Featured Replies

Hello

 

I have just integrated wordpress blog into an existing website of mine and I want to get rid of 'Search for' next to search box. I can see the html when I view page source, but don't know where to find it in wordpress files - any ideas?

 

Also the pages go tits up when I click on any of the links in the sidebar, it looks as though they aren't linked to style sheet, any ideas on that too would be appreciated.

 

Much thanks in advance.

 

the blog is at www.marble-design.co.uk/blog

 

if that helps

Take a look at this page http://codex.wordpress.org/Function_Reference/get_search_form

 

Short of hand coding the form and putting it in your template instead of <?php get_search_form(); ?> I don't know if there's another way to do this. I have no idea what file generates the html output for that function.

 

As for your pages going wrong, have you looked at the page.php file in your theme folder?

I have just integrated wordpress blog into an existing website of mine and I want to get rid of 'Search for' next to search box. I can see the html when I view page source, but don't know where to find it in wordpress files - any ideas?

 

That's theme dependent, though I this in my header you can see here - http://superpositionkitty.com/

 

<form method="get" id="searchform" action="http://yoursite.com/">
<input type="text" name="s" size="40" id="input-search" value="SEARCH" />
</form>

 

You'll have to find where your other search bar is in your theme and remove it.

The code is in sidebar.php as <?php get_search_form(); ?>

 

Remove that and replace with

 

<form method="get" id="searchform" action="http://marble-design.co.uk/blog/" >
<div><label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>

 

Remember to put in between the <li> and </li> at the top

  • Author

Thanks for the replies, I play around with sidebar theme later. No joy on the strange pages, see new post!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.