Support » Plugin: YAK for WordPress » Element Postioning in Firefox – yak-view-confirm.php

  • This is dependent on the theme being used, but the fix is so simple, I’m hoping you might add it to the next release. I’ve tested it in Firefox, Chrome, IE, and Safari on Windows.

    I was having a problem with the confirmation table jumping over to the right in Firefox. After NUMEROUS attempts to fix it using CSS, I finally ended up hacking yak-view-confirm.php.

    I’ve seen this before and it has to do with the way the FORMS are handled.

    All I did is add:
    <br>
    After the opening FORM tag – Nothing else.

    Here’s the surrounding code:

    <h3><?php _e('Confirm your order', 'yak'); ?></h3>
    <?php
    include 'yak-view-address-snippet.php';
    ?>
    <p>&nbsp;</p>
    <h3><?php _e('Order Detail', 'yak'); ?></h3>
    
    <form name="confirm2" method="post" action="<?php echo yak_get_permalink('stage=confirm') ?>">
    <strong><br></strong>
        <table class="yak_order">
            <tr>
                <th><?php _e('Item', 'yak'); ?></th>
                <th class="yak_numeric"><?php _e('Price', 'yak') ?></th>
                <th class="yak_numeric"><?php if (!$hide_quantity) { _e('Qty', 'yak'); } ?></th>
                <th class="yak_numeric"><?php _e('Subtotal', 'yak') ?></th>
            </tr>

    http://wordpress.org/extend/plugins/yak-for-wordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I GOOFED in putting in the surrounding code. Here is again.

    As I said, the only change to the yak-view-confirm.php code is the addition of ‘
    ‘ after the opening ‘,form.’:

    <h3><?php _e('Confirm your order', 'yak'); ?></h3>
    <?php
    include 'yak-view-address-snippet.php';
    ?>
    <p>&nbsp;</p>
    <h3><?php _e('Order Detail', 'yak'); ?></h3>
    
    <form name="confirm2" method="post" action="<?php echo yak_get_permalink('stage=confirm') ?>">
    
    <br>
    
        <table class="yak_order">
            <tr>
                <th><?php _e('Item', 'yak'); ?></th>
                <th class="yak_numeric"><?php _e('Price', 'yak') ?></th>
                <th class="yak_numeric"><?php if (!$hide_quantity) { _e('Qty', 'yak'); } ?></th>
                <th class="yak_numeric"><?php _e('Subtotal', 'yak') ?></th>
            </tr>
    Plugin Author nolongeractive

    (@jrbriggs)

    Looks like you’ve got a <br> there which I don’t have… so are you sure the blank line will fix the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Element Postioning in Firefox – yak-view-confirm.php’ is closed to new replies.