Welcome! To use this support forum, please Login or Join Today!

   

Theme inserting <br> after hidden input fields

{name}
Rank

Total Posts: 3

Joined 2013-03-21

PM

 

I’m encountering an issue with the Onyx theme inserting
after hidden input fields (generated HTML pulled from Firebug is below) when it should not be doing so:

<form acti name="payment_form" method="post">
<
input type="hidden" value="2" name="rm">
<
br>
<
input type="hidden" value="_cart" name="cmd">
<
br>
<
input type="hidden" value="Attendee for Unthrocon 2013. Attendee: Mark Heimbigner" name="item_name_1">
<
br

I switched back to the twenty twelve theme and the line breaks are not there, so it’s definitely an issue with Onyx and not the theme or my cart plugin.  I’m using the stock style5.css (light blue) with some additional code to enable social icons in the topmenu:

/* Top Menu Icon Classes */
 
#topmenu a {
 
padding0px 14px;
 
line-height24px;
 
text-decorationnone;
}
 
#topmenu li {
 
padding0px 0px 0px 16px;
 
margin0;
}

#topmenu li.twitter,
#topmenu li.facebook,
#topmenu li.rss {padding-left: 0;}
 
#topmenu li.twitter a {
 
backgroundurl(./images/icons/16_twitter.pngno-repeat 750%;
 
padding-left32px;
}
 
#topmenu li.facebook a {
 
backgroundurl(./images/icons/16_facebook.pngno-repeat 750%;
 
padding-left32px;

 
#topmenu li.rss a {
 
backgroundurl(./images/icons/16_rss.pngno-repeat 750%;
 
padding-left32px;




/* @end */ 

Thanks in advance!

Best regards,
Mark

 

{name}
Rank

Total Posts: 3

Joined 2013-03-21

PM

 

As a workaround, I applied [raw] tags to the page that was having issues in order to bypass the theme auto-formatting.

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

Hi, that certainly is an option, however moving forward (and as we get Onyx into the new framework) we’re using the wpautop = false custom field instead. The [raw] tags just use so much more overhead than this method.


I’ve added this change to the current branch if you’d like to re-download from your account and apply the patched file.

http://www.simplethemes.com/wordpress-themes/changelog/onyx
/lib/functions/theme_functions.php