I
I
ifyouwantthendo2020-07-19 19:25:17
HTML
ifyouwantthendo, 2020-07-19 19:25:17

What happened to the wordpress button?

I screwed the metric goals onto the button and ran into this picture
5f1473c342414608066499.png
wp swears at this piece of code

<a href="#" class="banner_button_1" onclick="ym(55997530,'reachGoal','lead gl ek'); return true;>Оставить заявку</a>
      </div>
<div class="product-single__popup">
  <div class="overlay"></div>

  <form method="post" id="order" class="product-order-popup order-popup-active">
    <div class="order-popup_title text-center">Оформите заявку</div>
    <input type="hidden" name="product_title" value="<?php the_title(); ?>">
    <input type="hidden" name="product_price" value="<?= $price; ?>">
    <div class="form-row">
      <label>Имя<span>*</span></label>
      <input type="text" name="name" placeholder="Иван Петров">
    </div>
    <div class="form-row">
      <label>E-mail<span>*</span></label>
      <input type="text" name="email" placeholder="[email protected]">
    </div>
    <div class="form-row">
      <label>Телефон</label>
      <input type="text" name="tel" placeholder="8 952 222 22 22">
    </div>
    <button class="btn-submit" id="sendBtn" " onclick="ym(55997530,'reachGoal','lead gl ek'); return true;">

maybe he accidentally deleted or added that now there is such a picture.
Connoisseurs, help me out

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlyuk, 2020-08-01
@pavlukd

There is a complete house in the code :)
At least there is a problem with the placement of quotes.
For example:

<a href="#" class="banner_button_1" onclick="ym(55997530,'reachGoal','lead gl ek'); return true;>Оставить заявку</a>

It should be like this:
<a href="#" class="banner_button_1" onclick="ym(55997530,'reachGoal','lead gl ek'); return true;">Оставить заявку</a>

For the second button it should be like this:
<button class="btn-submit" id="sendBtn" onclick="ym(55997530,'reachGoal','lead gl ek'); return true;">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question