I think we can play with that hook but I will require admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The sites not live however there `re a couple of us working on this at the moment.
While giving you access is not an issue, I'd prefer not to just because we are busy on the site.
If it's not a simple setup that I was missing using Conditional then I guess its not worth the trouble.
Can you please share problem URL where I can see the pagination as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
You need to replace the ".target-section" with the section that actually displays your content which you would like to show/hide. So, you will have to check the page source and find the target section div with the class name and use that actual class name to replace with "".target-section".
I hope that helps and If you do not give access and at least share the page link where I can see that section that you would like to hide it that would be helpful.
var x = jQuery(".js-wpv-view-layout").data('pagination');
var selector = '.js-wpv-view-layout .nav-links';
if(x.page > 1){
jQuery( selector ).hide()
}else{
jQuery( selector ).show();
}
});
Now when you click the 2 on pagination. the text row is still there...more the issue is 'now' the pagination buttons vanish rather than the text section.
My apologies, I understood that you want to hide the pagination, which I found a bit odd. Now that I have read the description again, carefully, I wonder if you want to hide the text on this screenshot hidden link right?
If that's the case, the custom code needs to be adapted, first to not act(hide) on the pagination, and second to act on that block. However, we'll need to add a class or ID to the block to be able to target it using Javascript.
We can't use conditional because that block is located outside of the view, so we just can't use anything from the view, at least not without custom code.
If you don't know how to add a class or ID to that block, allow me temporary access to your website to implement it and take screenshots to show you how. It is a small update, it won't take more than 5 minutes. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
You're saying I need to add a class to the section, Minesh says inspect the code and add the section ID.
Now I know the code needs adding the the JS trigger as you showed me, can you alter this so it uses a Class and give me instructions and I'll give it a go.