在按钮元素之前运行CSS的Wordpress

时间:2017-03-15 17:11:44

标签: php wordpress

<input type="submit" class="button wp_job_manager_send_application_button" value="Send application">

我正在尝试修改按钮HTML。

通缉行动,从另一个插件触发CSS(mycred)

它位于/public_html/wp-content/plugins/wp-job-manager-applications/templates/application-form.php (第24行)对于此Pastebin上的代码 http://pastebin.com/GVwdSsvy

<?php global $post; ?>
<form class="job-manager-application-form job-manager-form" method="post" enctype="multipart/form-data" action="<?php echo esc_url( get_permalink() );?>">
    <?php do_action( 'job_application_form_fields_start' ); ?>

    <?php foreach ( $application_fields as $key => $field ) : ?>
        <?php if ( 'output-content' === $field['type'] ) : ?>
            <div class="form-content">
                <h3><?php esc_html_e( $field['label'] ); ?></h3>
                <?php if ( ! empty( $field['description'] ) ) : ?><?php echo wpautop( wp_kses_post( $field['description'] ) ); ?><?php endif; ?>
            </div>
        <?php else : ?>
            <fieldset class="fieldset-<?php esc_attr_e( $key ); ?>">
                <label for="<?php esc_attr_e( $key ); ?>"><?php echo __( $field['label'] ) . apply_filters( 'submit_job_form_required_label', $field['required'] ? '' : ' <small>' . __( '(optional)', 'wp-job-manager' ) . '</small>', $field ); ?></label>
                <div class="field <?php echo $field['required'] ? 'required-field' : ''; ?>">
                    <?php $class->get_field_template( $key, $field ); ?>
                </div>
            </fieldset>
        <?php endif; ?>
    <?php endforeach; ?>

    <?php do_action( 'job_application_form_fields_end' ); ?>

    <p>
        <input type="submit" class="button wp_job_manager_send_application_button" value="<?php esc_attr_e( 'Use Token & Apply!', 'wp-job-manager-applications' ); ?>" />
        <input type="hidden" name="wp_job_manager_send_application" value="1" />
        <input type="hidden" name="job_id" value="<?php echo absint( $post->ID ); ?>" />
    </p>
</form>

显示为..

<input type="submit" class="button wp_job_manager_send_application_button" value="<?php esc_attr_e( 'Send application', 'wp-job-manager-applications' ); ?>" />

单击按钮时需要使用此CSS。

a.mycred-points-link {http://linkhere.com }

我对如何将它们联系在一起感到茫然。

我该如何制作

a.mycred-points-link {http://linkhere.com }

按下按钮

运行
<input type="submit" class="button wp_job_manager_send_application_button" value="Send application">

0 个答案:

没有答案