Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Rmove <BR's> from search input field


  • Please log in to reply
1 reply to this topic

#1 Kenneth Jensen

Kenneth Jensen

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 27 September 2012 - 03:26 AM

Hi there

The source code for the default search button is this:
<input type="text" id="tubepress_search" name="tubepress_search" class="tubepress_text_input" value="<?php echo htmlspecialchars(${org_tubepress_api_const_template_Variable::SEARCH_TERMS}); ?>"/>
<button class="tubepress_button" title="Find video!"><?php echo htmlspecialchars(${org_tubepress_api_const_template_Variable::SEARCH_BUTTON}); ?></button>
and default HTML output looks like this:
<fieldset class="tubepress_search">
	<input type="text" id="tubepress_search" name="tubepress_search" class="tubepress_text_input" value=""/>
	<button class="tubepress_button" title="Find video!">Search</button>
</fieldset>

But how do I remove the br's before and after the button? As far as I can see, they are not generated in search_input.tpl.php

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 28 September 2012 - 05:27 PM

Hi,

Are you using TubePress in a WordPress environment? If so, it's very likely that either your theme or another plugin is inserting
when it finds line breaks. To test this, I would

  • Switch to the default TwentyEleven theme to see if the problem goes away

  • If that doesn't work, you'll have to disable your plugins one-by-one until you find the culprit
Tedious, I know, but it's a simple and effective way to track down the issue. You could also simply get rid of all line breaks in search_input.tpl.php, but that doesn't really solve the root problem.

What do you think?