• Hi,

    I have my posts visible trought this plugin. Everything works, but i have the following problem. I have 5 pages of posts and if i’m on one page (let’s say page 1) and click on page 2 a new blank tab opens with “about:blank” in the URL field.

    It still gets me to page 2 in our case, but i don’t undestand why it opens a new blank tab ?

    Regards,

    • This topic was modified 6 years, 8 months ago by exe65.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi,
    Might you send me the URL/link of page where I can see what’s happening?
    I will investigate and resolve it for you.

    Thank you,

    Thread Starter exe65

    (@exe65)

    Hi !

    The url is:
    https://www.najnakupi.si/najnovice

    You will notice if you click on page 2 (at the bottom) that it opens a blank tab.

    Plugin Author Content Views

    (@pt-guy)

    Thank you for your URL.
    There is custom script in file https://www.najnakupi.si/wp-content/themes/flatonpro/js/custom.js, line 286 which forces to open new tab on click anchor tag:

    
    $('a').each(function() {
         var a = new RegExp('/' + window.location.host + '/');
         if(!a.test(this.href)) {
             $(this).click(function(event) {
                 event.preventDefault();
                 event.stopPropagation();
                 window.open(this.href, '_blank');
             });
         }
      });
    

    They don’t provide any ways to disable the “open new tab” behavior.

    Please switch to Normal pagination, or contact theme developer to add excluding class (so I can add that class to anchor tags in Content Views pagination).

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clicking on next page opens a blank tab’ is closed to new replies.