Trying to link to Details tab

This topic contains 6 replies, has 4 voices, and was last updated by  cyril lansade 7 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #354229

    cyril lansade
    Expired Member
    Post count: 150

    Hi,

    I’ve created a call to action in my detail page that is to encourage users to give reviews. The button links directly to the review tab. Except it doesn’t work 🙁

    See the ‘Write a review’ box in the right column:
    https://medrate.asia/sg/doctors/singapore/abraham-mathews/#post_info

    I’ve set button URL as “#reviews” which when you rollover it shows the correct URL for the Review tab: https://medrate.asia/sg/doctors/singapore/abraham-mathews/#review

    BUT on-clicking that page does not change, even if the browser address correctly shows the URL. Are these not standard in-page hyper links? Is there something I’m missing?

    Many thanks

    #354242

    Kor
    Moderator
    Post count: 16516

    Hi cyril,

    Where is that hyperlink you mentioned that it is not working for you? I’ve visited both links you shared and it worked fine as shown in the screenshots below.

    https://medrate.asia/sg/doctors/singapore/abraham-mathews/#post_infohttp://prntscr.com/e3v2i2

    https://medrate.asia/sg/doctors/singapore/abraham-mathews/#reviewhttp://prntscr.com/e3v2m5

    Thanks!

    #354243

    cyril lansade
    Expired Member
    Post count: 150

    It is using the link on the call to action that does not work.

    If you start on one of the other tabs, click the ‘write a review’ it doesn’t go to the tab.

    #354387

    Guust
    Moderator
    Post count: 29970

    Hi, you need to link to #respond , not #reviews. Thanks.

    #354653

    cyril lansade
    Expired Member
    Post count: 150

    Hi,

    I’ve changed the link and it still doesn’t work.

    When on one of the other tabs, pressing the ‘Write a review’ button doesn’t open up the Review tab. The URL changes but not the tab.

    I’ve tried it in IE and Chrome.

    #354743

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Add this to the a tag

    onclick="jQuery('.geodir-tab-head [data-tab=#reviews]').closest('dd').trigger('click');"

    so it becomes:

    <a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-modern vc_btn3-color-white" href="#reviews" title="" onclick="jQuery('.geodir-tab-head [data-tab=#reviews]').closest('dd').trigger('click');">Write a review</a>

    Stiofan

    #355304

    cyril lansade
    Expired Member
    Post count: 150

    Hello,

    That works great thank you. I thought there was something else needed.

    Many thanks Stiofan

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket