Title: problem with the anchor
Last modified: August 22, 2016

---

# problem with the anchor

 *  [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/)
 * problem with the anchor
    one more problem. I decided to post it in a separate
   topic. After selecting a specific time on the right (when loading the form for
   entering contact information) it automatically located in the top of the screen.
   All information about booking (service, date, time, etc.) is hidden from the 
   user. how to make the block fully displayed? not only with the input string name?
   ie it is necessary that anchor (at start of the block) was not in the “Your Name”,
   but exactly on “PLEASE CHECK THE APPOINTMENT DETAILS BELOW AND CONFIRM:” is it
   possible?
 * [https://wordpress.org/plugins/appointments/](https://wordpress.org/plugins/appointments/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problem-with-the-anchor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-the-anchor/page/2/?output_format=md)

 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930086)
 * most interesting that in Firefox everything works at all another ..)))
    When 
   I load the page with the plugin on the right side immediately displays the next
   7 days and time options for them …
 * and after selecting the time booking correctly displays a form for entering contact
   data.
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930149)
 * Hey there someone02,
 * If you’re looking to stop page going to top once you click on show available 
   times for example we’ve had similar request on our forum [here](http://premium.wpmudev.org/forums/topic/i-want-the-website-to-stay-in-the-same-place-when-the-page-refreshes#post-842701)
   where one of my colleagues provided a solution.
 * Please let me know if this helps 🙂
 * Best regards,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930154)
 * very strange that it works differently in different browsers …
 * I made a test site, where I test different plugins … 🙂
    look, please …
 * [http://5black.hol.es/2/booking/](http://5black.hol.es/2/booking/)
 * your plugin opens and works a little differently in each browser …
    speech about
   opened the start page with the plugin (especially Firefox) and the transition
   and arrangement the form filling contacts.
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930175)
 * Hey again someone02,
 * I’m not exactly sure what you mean, I’ve checked your site and tested the same
   thing on my installation using the lite version of the plugin and the only issue
   is page not landing only the same place in Chrome and in FF/IE.
 * Is there anything else there that I’m missing?
 * Please advise,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930192)
 * ok
    few pictures
 * Chrome, Opera or Safari
    1. I open the booking page [https://cloud.mail.ru/public/905a5a5952a1/1.jpg](https://cloud.mail.ru/public/905a5a5952a1/1.jpg)
 * 2. cut off contact form after selecting the time booking
    [https://cloud.mail.ru/public/8cb6a3330c26/2.jpg](https://cloud.mail.ru/public/8cb6a3330c26/2.jpg)
 * only Firefox
    3. I open the booking page (do you see additional days in right
   side ???) [https://cloud.mail.ru/public/befc9f9a6a03/3.jpg](https://cloud.mail.ru/public/befc9f9a6a03/3.jpg)
 * 4.good (full) contact form after selecting the time booking
    [https://cloud.mail.ru/public/7df2377298ca/4.jpg](https://cloud.mail.ru/public/7df2377298ca/4.jpg)
 * it’s on same empty WP
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930270)
 * Hey again someone02,
 * Thank you for the screenshots.
 * I wasn’t able to reproduce the issue in the Firefox with multiple dates being
   selected. How are you getting multiple days displayed?
 * As for the issue is only that the form is not being displayed in the same place
   once you select the time for the appointment I’ll report this to plugin developer
   so he can look for a fix in the future. Since this is not a major bug and the
   issue is only where the page lands once you select time this will not be a high
   priority.
 * Best regards,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930280)
 * “I wasn’t able to reproduce the issue in the Firefox with multiple dates being
   selected. How are you getting multiple days displayed?” – i don’t know. It’s 
   the same page in same site. And I open it almost at the same time )))
 * about contact form – is it just me such a mistake that can not see the top or
   it so conceived?
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930284)
 * Hey again someone02,
 * I’ve made a video using Firefox on your page where I’m clicking on the available
   dates not being able to reproduce the issue with double dates appearing, please
   check it out here [http://screencast.com/t/5DoLpvZL7kQ](http://screencast.com/t/5DoLpvZL7kQ).
 * As for the issue of the form not being displayed properly on different browsers,
   they are displayed the same on all browsers with the difference of where the 
   page actually lands when you click on the available time. Scrolling slightly 
   up will show the form normally, check the following screenshots:
 * Chrome: [http://screencast.com/t/RrKWvHYGCrL](http://screencast.com/t/RrKWvHYGCrL)
   
   Firefox: [http://screencast.com/t/v6s6v9bIKgF5](http://screencast.com/t/v6s6v9bIKgF5)
   IE: [http://screencast.com/t/Kn4fmGj6](http://screencast.com/t/Kn4fmGj6)
 * As you can see the form is the same in all browsers it’s just where the page 
   lands once you click on the date.
 * Hope this helps 🙂
 * Cheers,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930287)
 * hi
    Thank you that you are still with me …)))
 * about Firefox
    I found a reason … because the problem was only with one browser,
   it is logical to assume that the matter is in it, but not in your plugin. The
   reason was the add-on RDS BAR (this addition to seo analysis). After his disable
   everything was working correctly. If this application is installed, it gives 
   it a picture that was on my screenshot. Perhaps this information will help you
   in the future.
 * For the locations of the form. I am not in any way saying that the form is not
   loaded or is broken, I said that it is loaded, just in Chrome and Opera – it’s
   a little beyond the top of the screen. And when you scroll the screen up it becomes
   fully visible.
    I understand that this is not the biggest problem, and can hardly
   expect that it will be fixed in the next update.
 * In this connection I have a question – that I do not scan all files – can you
   help me and tell exactly which file configures settings move the screen after
   selecting the time booking form to fill in contact? I’ll try to play with it.
 * thanks in advance.
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930289)
 * Hey there someone02,
 * You should be able to find it in /wp-content/plugins/appointments/includes/class_app_shortcodes.
   php. Look for the line 1850, which looks like this:
 * `$(".appointments-confirmation-button").focus();`
 * I’ve also talked to plugin developer about this one and this should fix it. Try
   adding the following below that line:
 *     ```
       var offset = $(".appointments-confirmation-wrapper").offset();
       if (offset && "top" in offset && offset.top) {
           $(window).scrollTop(offset.top);
       }
       ```
   
 * Hope this helps 🙂
 * Cheers,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930356)
 * sorry for the long wait …
    I tried … does not work … if I put this code immediately
   after the specified line – then I get this error here at the opening page of 
   the site Parse error: syntax error, unexpected ‘var’ (T_VAR) in D: \ xampp \ 
   htdocs \ mytest \ wp-content \ plugins \ appointments \ includes \ class_app_shortcodes.
   php on line 1854
 * ps .. and still do not know why, but I have this line 1853 )
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930358)
 * Hey there someone02,
 * Could you please try replacing the code in the same file with this one here:
 * [http://pastebin.com/fEKqeS82](http://pastebin.com/fEKqeS82)
 * Make a backup just in case something goes wrong.
 * Please let me know if this helps 🙂
 * Best regards,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930360)
 * Fatal error: Call to undefined method App_Template::get_currency_symbol() in 
   D:\xampp\htdocs\mytest\wp-content\plugins\appointments\includes\class_app_shortcodes.
   php on line 1614
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930363)
 * Hey again someone02,
 * Sorry about that one I’ve made a mistake there, could you please try this one:
 * [http://pastebin.com/hk0ZAcuf](http://pastebin.com/hk0ZAcuf)
 * This one should work, I’ve double checked on my end 🙂
 * Best regards,
    Bojan
 *  Thread Starter [someone02](https://wordpress.org/support/users/someone02/)
 * (@someone02)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/#post-5930365)
 * cool
    it’s working! )))) you are a genius!
 * and what I need to edit to make additional top margin for 20 – 30 px?
    весаuse
   my theme has a small fixed menu at the top
 * and thanks anyway )))

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problem-with-the-anchor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-the-anchor/page/2/?output_format=md)

The topic ‘problem with the anchor’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/appointments_eaf36c.svg)
 * [Appointments](https://wordpress.org/plugins/appointments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointments/)
 * [Active Topics](https://wordpress.org/support/plugin/appointments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointments/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/problem-with-the-anchor/page/2/#post-5930368)
 * Status: not resolved