Forums Forums Search & Filter Pro Issue with anchor tag

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #49795

    On my search results page, I have an anchor tag which links to the single page, and then a specific point on that page. Code below:

    /#tab1″ class=”cta grey two”>View finance information

    Code on target page is:

    <div id=”tab1″></div>

    The problem is that, instead of going to the specified div, I’m taken right to the bottom of the page. I’m convinced this is to do with the Search & Filter Ajax, as if I link to another page that doesn’t pass the search values through, it works no problem. I’ve tried turning off ‘Load results using Ajax’ but that doesn’t make any difference.

    Any suggestions would be greatly appreciated!

    Thanks.

    Anonymous
    #49796

    Sorry, forgot to put code in code tags. Can’t see a way to edit the post, so here’s what it should be:

    <a href="<?php the_permalink();?>/#FinanceTab" class="cta grey two">View finance information</a>

    Trevor
    #49821

    Hi Suzanne

    Do you have a live url I can see with the search on, and a page without it to compare, if possible?

    Anonymous
    #49838
    This reply has been marked as private.
    Trevor
    #49902
    This reply has been marked as private.
    Trevor
    #49981

    Hi

    OK, so we talked and my suggestion was to take a look at the WP4.5 compatible smoothscroll.js script/tutorial I had written and given you a link to (http://ulttest.cdnwebservices.net/onepagedemo/) and that you also need to take a look a custom rewrite rules (putting the code into the theme’s functions.php file).

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