Jump to content
  • 0

ISSUE WITH PAGINATION CONTROLS IN WORDPRESS


michaleben123

Question

ISSUE WITH PAGINATION CONTROLS IN WORDPRESS

I am running into a problem that I think must have popped up for others using data pages in a mobile form factor:

- even with "Record per Page" hidden,  the pagination controls are not entirely visible

- because of the visibility issue, users can't get past the 2nd page of data...the "next" icon is not visible

 

TRYING TO...

Does anyone now how to format the pagination controls (mobile form factor) using embed function, such that:

- controls are completely left-justified (assumes "Record per Page" is hidden)

- controls are completely left-justified and below  "Record per Page" (assumes "Record per Page" is NOT hidden)

- spacing between (first, next, prev and last) icons and text ("Page" and "of") is compressed

 

DIFFERENT MODES...

- embed reference does not work (after 2nd page, "next" icon is not visible)

- iframe seems to work - pagination controls are completely left justified, so controls are visible after 2nd page, but there's no frame sizing controls

- wordpress plugin does not work (after 2nd page, "next" icon is not visible)

 

Thanks!

5adcaa7098f57_CASPIO-2018-03-17-03-PAGINGFORMAT-03.thumb.png.ef6904459e57df25b61e09b92511d923.png

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

@michaleben123

Hello!
There are two ways how to approach your issue.

The first one is to get rid of blank fields between "Records per page" and "Page" navigation.
You need to insert this snippet of code into your Header:

<script type="text/javascript">
document.addEventListener('DataPageReady', function () {
 let elems = [document.querySelector('table[class^="cbResultSetNavigationTableCellspacing"] tbody')][0].firstChild.children;
 
 for(let i = 0; i < elems.length; i++) {
  if(elems[i].innerHTML == '&nbsp;') {
   elems[i].style.display = 'none';
  }
 }
});
</script>

Do not forget to disable the HTML editor!

 

joxi_screenshot_1561451024320.png.2c053e362b8ee255ce277f62819452a5.png

joxi_screenshot_1561451054094.png.5eaa2ec28e5ea2f313b9f088f4373ae9.png

If the solution is not helpful for you, try to check this article below. It contains the solution for custom Prev-Next buttons.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...